From e33a823ac8d8242fb606b3887c2eab2c3c99c768 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 15 Aug 2024 17:37:46 +0100 Subject: [Minor] Slight cleanup --- test/lua/unit/ucl.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/lua') 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 -- cgit v1.2.3