Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for valAttr (0.07 sec)

  1. src/go/types/eval_test.go

    			return
    		}
    	}
    
    	// compare values
    	gotStr := ""
    	if gotTv.Value != nil {
    		gotStr = gotTv.Value.ExactString()
    	}
    	if gotStr != valStr {
    		t.Errorf("Eval(%q) got value %s, want %s", expr, gotStr, valStr)
    	}
    }
    
    func TestEvalBasic(t *testing.T) {
    	fset := token.NewFileSet()
    	for _, typ := range Typ[Bool : String+1] {
    		testEval(t, fset, nil, nopos, typ.Name(), typ, "", "")
    	}
    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