Software /
code /
prosody
Diff
spec/util_iterators_spec.lua @ 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 |
parent | 9327:f6f1dec164b5 |
child | 12744:e894677359e5 |
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);