Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEvalArith (0.19 sec)

  1. src/go/types/eval_test.go

    	}
    }
    
    func TestEvalComposite(t *testing.T) {
    	fset := token.NewFileSet()
    	for _, test := range independentTestTypes {
    		testEval(t, fset, nil, nopos, test.src, nil, test.str, "")
    	}
    }
    
    func TestEvalArith(t *testing.T) {
    	var tests = []string{
    		`true`,
    		`false == false`,
    		`12345678 + 87654321 == 99999999`,
    		`10 * 20 == 200`,
    		`(1<<500)*2 >> 100 == 2<<400`,
    		`"foo" + "bar" == "foobar"`,
    		`"abc" <= "bcd"`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 19:56:15 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top