# HG changeset patch # User Matthew Wild # Date 1537536620 -3600 # Node ID a9592107021bf380777a493ea7ec7f16e688f6e4 # Parent f6f1dec164b5d2484af393ccc062179be4f2be33 util.iterators tests: Check value matches expected [luacheck] diff -r f6f1dec164b5 -r a9592107021b spec/util_iterators_spec.lua --- 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);