proc/variables: bugfix: makes TestEvalExpression more robust

Fixes #320
This commit is contained in:
aarzilli
2015-12-18 17:21:54 +01:00
committed by Derek Parker
parent 17b39b789d
commit 8872b53e80

View File

@ -537,7 +537,7 @@ func TestEvalExpression(t *testing.T) {
{"nil[0]", false, "", "", "", fmt.Errorf("expression \"nil\" (nil) does not support indexing")},
{"nil[2:10]", false, "", "", "", fmt.Errorf("can not slice \"nil\" (type nil)")},
{"nil.member", false, "", "", "", fmt.Errorf("type nil is not a struct")},
{"(map[string]int)(0x4000)", false, "", "", "", fmt.Errorf("can not convert \"0x4000\" to *struct hash<string,int>")},
{"(map[string]main.astruct)(0x4000)", false, "", "", "", fmt.Errorf("can not convert \"0x4000\" to *struct hash<string,main.astruct>")},
// typecasts
{"uint(i2)", false, "2", "", "uint", nil},