Software /
code /
prosody
Changeset
9328:a9592107021b
util.iterators tests: Check value matches expected [luacheck]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 21 Sep 2018 14:30:20 +0100 |
parents | 9327:f6f1dec164b5 |
children | 9329:19bc3ec13f07 |
files | spec/util_iterators_spec.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/spec/util_iterators_spec.lua Fri Sep 21 14:27:46 2018 +0100 +++ b/spec/util_iterators_spec.lua Fri Sep 21 14:30:20 2018 +0100 @@ -21,6 +21,7 @@ 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 @@ 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);