Fix oopsie

This commit is contained in:
2025-03-26 02:52:28 +01:00
parent 66a522aa12
commit bb14087598
2 changed files with 14 additions and 8 deletions

View File

@@ -1555,11 +1555,10 @@ func TestXMLToLua(t *testing.T) {
}
// Convert to Lua
table, err := processor.ToLua(L, root)
err := processor.ToLua(L, root)
if err != nil {
t.Fatalf("Failed to convert to Lua: %v", err)
}
L.SetGlobal("v", table)
// Verify the result
luaTable := L.GetGlobal("v")
@@ -1606,11 +1605,10 @@ func TestXMLToLua(t *testing.T) {
}
// Convert to Lua
table, err := processor.ToLua(L, street)
err := processor.ToLua(L, street)
if err != nil {
t.Fatalf("Failed to convert to Lua: %v", err)
}
L.SetGlobal("v", table)
// Verify the result
luaTable := L.GetGlobal("v")