Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestTermString (0.15 sec)

  1. src/cmd/compile/internal/types2/typeterm_test.go

    	"∅":       nil,
    	"𝓤":       {},
    	"int":     {false, Typ[Int]},
    	"~int":    {true, Typ[Int]},
    	"string":  {false, Typ[String]},
    	"~string": {true, Typ[String]},
    	"myInt":   {false, myInt},
    }
    
    func TestTermString(t *testing.T) {
    	for want, x := range testTerms {
    		if got := x.String(); got != want {
    			t.Errorf("%v.String() == %v; want %v", x, got, want)
    		}
    	}
    }
    
    func split(s string, n int) []string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 20 23:30:58 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  2. src/go/types/typeterm_test.go

    	"∅":       nil,
    	"𝓤":       {},
    	"int":     {false, Typ[Int]},
    	"~int":    {true, Typ[Int]},
    	"string":  {false, Typ[String]},
    	"~string": {true, Typ[String]},
    	"myInt":   {false, myInt},
    }
    
    func TestTermString(t *testing.T) {
    	for want, x := range testTerms {
    		if got := x.String(); got != want {
    			t.Errorf("%v.String() == %v; want %v", x, got, want)
    		}
    	}
    }
    
    func split(s string, n int) []string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top