# HG changeset patch # User Anton Shestakov # Date 1467996826 -28800 # Node ID 8965ad0aed2c0d4a3ad1e6a67edc6f6951f59468 # Parent 3631d259bb852443bf664afc8fe207f81dde859d test_util_multitable: make mt variable local [luacheck] diff -r 3631d259bb85 -r 8965ad0aed2c tests/test_util_multitable.lua --- a/tests/test_util_multitable.lua Sat Jul 09 00:47:55 2016 +0800 +++ b/tests/test_util_multitable.lua Sat Jul 09 00:53:46 2016 +0800 @@ -8,7 +8,7 @@ function new(new, multitable) - mt = new(); + local mt = new(); assert_table(mt, "Multitable is a table"); assert_function(mt.add, "Multitable has method add"); assert_function(mt.get, "Multitable has method get"); @@ -40,7 +40,7 @@ return assert_equal(select(2, has_items(list, ...)), "has-all", message or "List has all expected items, and no more", 2); end - mt = multitable.new(); + local mt = multitable.new(); local trigger1, trigger2, trigger3 = {}, {}, {}; local item1, item2, item3 = {}, {}, {};