From 4cbf47f295fc65e4a470d93194259d80c942b32b Mon Sep 17 00:00:00 2001 From: ame Date: Wed, 27 May 2026 17:13:31 -0500 Subject: actual sort test, and fix docs --- tests/units/sort.lua | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'tests/units') 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) -- cgit v1.2.3