Diff

tests/test_util_multitable.lua @ 7472:8965ad0aed2c

test_util_multitable: make mt variable local [luacheck]
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 09 Jul 2016 00:53:46 +0800
parent 5776:bd0ff8ae98a8
child 7511:ef6505962351
line wrap: on
line diff
--- 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 = {}, {}, {};