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 | 431996d9448d0038e8a7dbf86a0d7f87994ad00e (patch) | |
tree | 17c70b86384cba010d1f7f234baa6435b0bb75fc | |
parent | 5947c028a9e5d586796b273538795bc1cc14785e (diff) | |
download | prosody-431996d9448d0038e8a7dbf86a0d7f87994ad00e.tar.gz prosody-431996d9448d0038e8a7dbf86a0d7f87994ad00e.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); |