diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-08-15 17:37:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-08-15 17:37:46 +0100 |
commit | e33a823ac8d8242fb606b3887c2eab2c3c99c768 (patch) | |
tree | a8925a31c487d027e2ce8c32f7edcd4ab3bccc39 /test | |
parent | 01bf13ae8d66c44ff05547a4153f11d15b53af01 (diff) | |
download | rspamd-e33a823ac8d8242fb606b3887c2eab2c3c99c768.tar.gz rspamd-e33a823ac8d8242fb606b3887c2eab2c3c99c768.zip |
[Minor] Slight cleanup
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/ucl.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lua/unit/ucl.lua b/test/lua/unit/ucl.lua index 991afc979..9bbf7225c 100644 --- a/test/lua/unit/ucl.lua +++ b/test/lua/unit/ucl.lua @@ -37,10 +37,10 @@ context("UCL manipulation", function() ireply[1] = 1 ireply[1] = 1 ireply[1] = 1 - ireply[#ireply + 1] = 100500 - local iexpected = { 1, 1, 1, 1, 1, "e1", "e2", 100500 } + ireply[ireply:len() + 1] = 100500 + local iexpected = { 1, "e2", 100500 } for k, v in ireply:ipairs() do - assert_equal(iexpected[k], v:unwrap()) + assert_equal(v:unwrap(), iexpected[k]) end reply.tbl = ireply |