aboutsummaryrefslogtreecommitdiff
path: root/tests/units
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units')
-rw-r--r--tests/units/sort.lua16
1 files changed, 5 insertions, 11 deletions
diff --git a/tests/units/sort.lua b/tests/units/sort.lua
index 343f65e..8a109c9 100644
--- a/tests/units/sort.lua
+++ b/tests/units/sort.lua
@@ -6,17 +6,11 @@ for i=1,len do
table.insert(input, math.random(-max, max))
end
-local a = llby.table.dup(input)
-local b = llby.table.dup(input)
-local c = llby.table.dup(input)
-local d = llby.table.dup(input)
-local e = llby.table.dup(input)
-
-llby.table.quicksort(a)
-llby.table.bubblesort(b)
-llby.table.heapsort(c)
-llby.table.shellsort(d)
-llby.table.mergesort(e)
+local a = llby.table.quicksort(input)
+local b = llby.table.bubblesort(input)
+local c = llby.table.heapsort(input)
+local d = llby.table.shellsort(input)
+local e = llby.table.mergesort(input)
return llby.table.equal(a, b) and llby.table.equal(b, c) and
llby.table.equal(c, d) and llby.table.equal(d, e)