Changeset

7485:5c4527f2d18d

test_util_cache: rename a variable (c is already defined) [luacheck]
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 09 Jul 2016 17:30:56 +0800
parents 7484:d962ccf90735
children 7486:c415a3fd4485
files tests/test_util_cache.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_util_cache.lua	Sat Jul 09 17:30:23 2016 +0800
+++ b/tests/test_util_cache.lua	Sat Jul 09 17:30:56 2016 +0800
@@ -196,12 +196,12 @@
 	assert_equal(i, 4);
 	
 	local evicted_key, evicted_value;
-	local c = new(3, function (_key, _value)
+	local c2 = new(3, function (_key, _value)
 		evicted_key, evicted_value = _key, _value;
 	end);
 	local function set(k, v, should_evict_key, should_evict_value)
 		evicted_key, evicted_value = nil, nil;
-		c:set(k, v);
+		c2:set(k, v);
 		assert_equal(evicted_key, should_evict_key);
 		assert_equal(evicted_value, should_evict_value);
 	end