From 8872b53e801d30841808df2ee16f924d71bef07f Mon Sep 17 00:00:00 2001 From: aarzilli Date: Fri, 18 Dec 2015 17:21:54 +0100 Subject: [PATCH] proc/variables: bugfix: makes TestEvalExpression more robust Fixes #320 --- service/test/variables_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/test/variables_test.go b/service/test/variables_test.go index 1b5262a0..ddab8f35 100644 --- a/service/test/variables_test.go +++ b/service/test/variables_test.go @@ -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")}, + {"(map[string]main.astruct)(0x4000)", false, "", "", "", fmt.Errorf("can not convert \"0x4000\" to *struct hash")}, // typecasts {"uint(i2)", false, "2", "", "uint", nil},