summaryrefslogtreecommitdiff
path: root/test/test-suite/sort.test.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-04-14 15:03:54 +1000
committerdaurnimator <quae@daurnimator.com>2018-04-15 18:40:20 +1000
commite9986b9189e2358f9c1a005412a792b7795643d2 (patch)
treeea6b8798705d4882b3de0ab52ace9c7f271d4a8b /test/test-suite/sort.test.js
parent65d022bf3d7330a3d8dc69c08e07a81f25b8ba4b (diff)
downloadfengari-e9986b9189e2358f9c1a005412a792b7795643d2.tar.gz
fengari-e9986b9189e2358f9c1a005412a792b7795643d2.tar.bz2
fengari-e9986b9189e2358f9c1a005412a792b7795643d2.zip
test/test-suite: Remove print calls
Diffstat (limited to 'test/test-suite/sort.test.js')
-rw-r--r--test/test-suite/sort.test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-suite/sort.test.js b/test/test-suite/sort.test.js
index 154db03..cc33c0c 100644
--- a/test/test-suite/sort.test.js
+++ b/test/test-suite/sort.test.js
@@ -22,7 +22,7 @@ const prefix = `
table.sort(a, func)
x = (os.clock() - x) * 1000
pre = pre or ""
- print(string.format("%ssorting %d %s elements in %.2f msec.", pre, n, msg, x))
+ -- print(string.format("%ssorting %d %s elements in %.2f msec.", pre, n, msg, x))
check(a, func)
end
@@ -397,8 +397,8 @@ test("[test-suite] sort: Invert-sorting", () => {
x = os.clock(); i=0
table.sort(a, function(x,y) i=i+1; return y<x end)
x = (os.clock() - x) * 1000
- print(string.format("Invert-sorting other %d elements in %.2f msec., with %i comparisons",
- limit, x, i))
+ -- print(string.format("Invert-sorting other %d elements in %.2f msec., with %i comparisons",
+ -- limit, x, i))
check(a, function(x,y) return y<x end)
table.sort{} -- empty array