diff options
Diffstat (limited to 'test/lua/unit')
-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 |