Skip to content

Commit c08bc1a

Browse files
authored
Update sort_spec.lua
1 parent 2be6f6b commit c08bc1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.spec/sorting/sort_spec.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,10 @@ end)
7575
describe("Bogosort", function()
7676
check_sort(require("sorting.bogosort"), 5)
7777
end)
78+
describe("Countingsort", function()
79+
-- Test with multiple radii
80+
local countingsort = require("sorting.countingsort")
81+
check_sort(countingsort(), nil, true)
82+
check_sort(countingsort(2), nil, true)
83+
check_sort(countingsort(1e3), nil, true)
84+
end)

0 commit comments

Comments
 (0)