]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Rewrote test using new assertion 2503/head
authorMikhail Galanin <mgalanin@mimecast.com>
Wed, 19 Sep 2018 14:38:52 +0000 (15:38 +0100)
committerMikhail Galanin <mgalanin@mimecast.com>
Wed, 19 Sep 2018 14:38:52 +0000 (15:38 +0100)
test/lua/unit/lua_util.extract_specific_urls.lua

index 9c8e4e187a9450707ff42bb5a076705e39840d40..1eaa88187e03b84ace539842052570fe188dbac4 100644 (file)
@@ -110,8 +110,7 @@ context("Lua util - extract_specific_urls", function()
         local s = logger.slog("%1 =?= %2", c.expect, actual_result)
         print(s) --]]
 
-      assert_equal(true, util.table_cmp(c.expect, actual_result), "checking that we got the same tables")
-
+      assert_rspamd_table_eq({actual = actual_result, expect = c.expect})
     end)
 
     test("extract_specific_urls " .. i, function()
@@ -132,8 +131,7 @@ context("Lua util - extract_specific_urls", function()
         local s = logger.slog("case[%1] %2 =?= %3", i, c.expect, actual_result)
         print(s) --]]
 
-      assert_equal(true, util.table_cmp(c.expect, actual_result), "checking that we got the same tables")
-
+      assert_rspamd_table_eq({actual = actual_result, expect = c.expect})
     end)
   end