diff options
| author | A2va <[email protected]> | 2023-09-30 18:16:31 +0200 |
|---|---|---|
| committer | A2va <[email protected]> | 2023-09-30 18:18:44 +0200 |
| commit | dbfde8ed4da11fd0221a88bfa267e9cf05457345 (patch) | |
| tree | 4003de077cd6cd503bb2ffb9b03d0481fb53c4ab /tests/modules/table | |
| parent | 434993362b6c4a6a2f20bd634b71eb4f27221253 (diff) | |
Remove unnecessary underscore
Diffstat (limited to 'tests/modules/table')
| -rw-r--r-- | tests/modules/table/test.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modules/table/test.lua b/tests/modules/table/test.lua index 297832575..2b586e7a4 100644 --- a/tests/modules/table/test.lua +++ b/tests/modules/table/test.lua @@ -33,9 +33,9 @@ end function test_orderkeys(t) -- sort by modulo 2 then from the smallest to largest local f = function(a, b) - if a % 2 == 0 then + if a % 2 == 0 and b % 2 ~= 0 then return true - elseif b % 2 == 0 then + elseif b % 2 == 0 and a % 2 ~= 0 then return false end return a < b |
