From 433e4ebb088dfa784b3c334f26fd4bd03753789a Mon Sep 17 00:00:00 2001 From: Max Cahill <1bardesign@gmail.com> Date: Mon, 23 May 2022 14:51:02 +1000 Subject: [PATCH] removed whitespace to make the linter happy; todo discover how to turn this particular inanity (whitespace only lines) off :) --- .test/tests.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.test/tests.lua b/.test/tests.lua index 6a4f1f6..6b96236 100644 --- a/.test/tests.lua +++ b/.test/tests.lua @@ -136,21 +136,21 @@ local function test_spairs() score = 10 } } - + local sorted_names = {} local sorted_score = {} - + for k, v in tablex.spairs(t, function(a, b) return t[a].score > t[b].score end) do tablex.push(sorted_names, v.name) tablex.push(sorted_score, v.score) end - + assert(tablex.deep_equal(sorted_names, { "John", "Joe", "Robert" })) - + assert(tablex.deep_equal(sorted_score, { 10, 8, 7 }))