We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df8bf9a commit c4ec6a7Copy full SHA for c4ec6a7
tests/test_arrays.lua
@@ -37,8 +37,8 @@ local luaunit = require("luaunit")
37
local arrays = require("arrays")
38
39
---@diagnostic disable-next-line: unused-function, unused-local
40
-TEST_ARRAYS = {
41
- test_get_from_forwards = function()
+TEST_GET_FROM = {
+ test_forwards = function()
42
local items = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
43
luaunit.assert_equals(arrays.get_from(items, 0, 0), {})
44
luaunit.assert_equals(arrays.get_from(items, 0, 1), { 1 })
@@ -55,7 +55,7 @@ TEST_ARRAYS = {
55
luaunit.assert_equals(arrays.get_from(items, 99, 999), {})
56
luaunit.assert_equals(arrays.get_from(items, 999, 99), {})
57
end,
58
- test_get_from_backwards = function()
+ test_backwards = function()
59
60
61
0 commit comments