Lua snake_case -> camelCase naming in tests

This commit is contained in:
Zef Hemel
2026-02-12 17:32:28 +01:00
parent 4979ac1907
commit 8592b3add6
11 changed files with 1118 additions and 1123 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
local function assert_equal(a, b)
local function assertEquals(a, b)
if a ~= b then
error("Assertion failed: " .. a .. " is not equal to " .. b)
end
@@ -8,9 +8,9 @@ end
-- local lodash = js.import("https://esm.sh/lodash@4.17.21")
-- assert_equal(js.stringify(lodash.chunk({1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 3)), '[[1,2,3],[4,5,6],[7,8,9],[10]]')
-- assertEquals(js.stringify(lodash.chunk({1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 3)), '[[1,2,3],[4,5,6],[7,8,9],[10]]')
-- local moment = js.import("https://esm.sh/moment@2.30.1")
-- local day = moment("1995-12-25");
-- assert_equal(day.format("DD-MM-YYYY"), "25-12-1995")
-- assertEquals(day.format("DD-MM-YYYY"), "25-12-1995")