diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-09-21 14:30:20 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-09-21 14:30:20 +0100 |
commit | f38c79e95a6904cd2532b984b5e0652c4d5de9bd (patch) | |
tree | 17c70b86384cba010d1f7f234baa6435b0bb75fc | |
parent | c65893de6ea4c5877a3c6be652656b4b93db587b (diff) | |
download | prosody-f38c79e95a6904cd2532b984b5e0652c4d5de9bd.tar.gz prosody-f38c79e95a6904cd2532b984b5e0652c4d5de9bd.zip |
util.iterators tests: Check value matches expected [luacheck]
-rw-r--r-- | spec/util_iterators_spec.lua | 2 |
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); |