aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_iterators_spec.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-09-21 14:30:20 +0100
committerMatthew Wild <mwild1@gmail.com>2018-09-21 14:30:20 +0100
commitf38c79e95a6904cd2532b984b5e0652c4d5de9bd (patch)
tree17c70b86384cba010d1f7f234baa6435b0bb75fc /spec/util_iterators_spec.lua
parentc65893de6ea4c5877a3c6be652656b4b93db587b (diff)
downloadprosody-f38c79e95a6904cd2532b984b5e0652c4d5de9bd.tar.gz
prosody-f38c79e95a6904cd2532b984b5e0652c4d5de9bd.zip
util.iterators tests: Check value matches expected [luacheck]
Diffstat (limited to 'spec/util_iterators_spec.lua')
-rw-r--r--spec/util_iterators_spec.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/util_iterators_spec.lua b/spec/util_iterators_spec.lua
index c819b2f0..4cf6f19d 100644
--- a/spec/util_iterators_spec.lua
+++ b/spec/util_iterators_spec.lua
@@ -21,6 +21,7 @@ describe("util.iterators", function ()
if last_key then
assert(k > last_key, "Expected "..k.." > "..last_key)
end
+ assert.equal(orig[k], v);
last_key = k;
end
assert.equal("d", last_key);
@@ -35,6 +36,7 @@ describe("util.iterators", function ()
if last_key then
assert(k < last_key, "Expected "..k.." > "..last_key)
end
+ assert.equal(orig[k], v);
last_key = k;
end
assert.equal("a", last_key);