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 2be6f6b commit c08bc1aCopy full SHA for c08bc1a
.spec/sorting/sort_spec.lua
@@ -75,3 +75,10 @@ end)
75
describe("Bogosort", function()
76
check_sort(require("sorting.bogosort"), 5)
77
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