Read string type from memory

This commit is contained in:
Derek Parker
2014-08-04 13:53:15 -05:00
parent 31f7278526
commit f8abe30aa7
2 changed files with 24 additions and 1 deletions

View File

@ -231,6 +231,7 @@ func TestVariableEvaluation(t *testing.T) {
value string
varType string
}{
{"a1", "foo", "struct string"},
{"a2", "6", "int"},
{"a3", "7.23", "float64"},
}
@ -257,7 +258,7 @@ func TestVariableEvaluation(t *testing.T) {
}
if variable.Value != tc.value {
t.Fatalf("Expected %s got %s\n", tc.value, variable.Value)
t.Fatalf("Expected %#v got %#v\n", tc.value, variable.Value)
}
}
})