Update ghoul to use new luaTableToString function

And update some tests based on the change
This commit is contained in:
Emma Broman
2021-12-06 13:21:39 +01:00
parent 36f06c494f
commit 59dc296cf1
2 changed files with 4 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ TEST_CASE("StringListProperty: Get Lua Value", "[stringlistproperty]") {
p.getLuaValue(L);
REQUIRE(ghoul::lua::luaValueToString(L, 1) ==
"{ 1.000000 = a, 2.000000 = b, 3.000000 = c }"
"{ [1] = \"a\", [2] = \"b\", [3] = \"c\" }"
);
}
@@ -221,7 +221,7 @@ TEST_CASE("IntListProperty: Get Lua Value", "[intlistproperty]") {
p.getLuaValue(L);
REQUIRE(ghoul::lua::luaValueToString(L, 1) ==
"{ 1.000000 = 1.000000, 2.000000 = 2.000000, 3.000000 = 3.000000 }"
"{ [1] = 1.000000, [2] = 2.000000, [3] = 3.000000 }"
);
}
@@ -332,7 +332,7 @@ TEST_CASE("DoubleListProperty: Get Lua Value", "[doublelistproperty]") {
p.getLuaValue(L);
REQUIRE(ghoul::lua::luaValueToString(L, 1) ==
"{ 1.000000 = 1.000000, 2.000000 = 2.000000, 3.000000 = 3.000000 }"
"{ [1] = 1.000000, [2] = 2.000000, [3] = 3.000000 }"
);
}