Software /
code /
prosody
Comparison
tests/test_util_cache.lua @ 7484:d962ccf90735
test_util_cache: remove unused argument c3 [luacheck]
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 09 Jul 2016 17:30:23 +0800 |
parent | 7291:688a7f5d3624 |
child | 7485:5c4527f2d18d |
comparison
equal
deleted
inserted
replaced
7483:8c5320a4bfaf | 7484:d962ccf90735 |
---|---|
217 set("d", 4, "a", 1) | 217 set("d", 4, "a", 1) |
218 set("e", 5, "c", 3) | 218 set("e", 5, "c", 3) |
219 | 219 |
220 | 220 |
221 local evicted_key, evicted_value; | 221 local evicted_key, evicted_value; |
222 local c3 = new(1, function (_key, _value, c3) | 222 local c3 = new(1, function (_key, _value) |
223 evicted_key, evicted_value = _key, _value; | 223 evicted_key, evicted_value = _key, _value; |
224 if _key == "a" then | 224 if _key == "a" then |
225 -- Sanity check for what we're evicting | 225 -- Sanity check for what we're evicting |
226 assert_equal(_key, "a"); | 226 assert_equal(_key, "a"); |
227 assert_equal(_value, 1); | 227 assert_equal(_value, 1); |