removed whitespace to make the linter happy; todo discover how to turn this particular inanity (whitespace only lines) off :)

This commit is contained in:
Max Cahill 2022-05-23 14:51:02 +10:00
parent 8a57ae458f
commit 433e4ebb08

View File

@ -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
}))