Fix some json tests
This commit is contained in:
@@ -35,10 +35,11 @@ func TestBuildLuaScript(t *testing.T) {
|
||||
{"v1 * 2", "v1 = v1 * 2"},
|
||||
{"v1 * v2", "v1 = v1 * v2"},
|
||||
{"v1 / v2", "v1 = v1 / v2"},
|
||||
{"12", "v1 = 12"},
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
result := BuildLuaScript(c.input)
|
||||
result := PrependLuaAssignment(c.input)
|
||||
if result != c.expected {
|
||||
t.Errorf("BuildLuaScript(%q): expected %q, got %q", c.input, c.expected, result)
|
||||
}
|
||||
|
Reference in New Issue
Block a user