From f38c79e95a6904cd2532b984b5e0652c4d5de9bd Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 21 Sep 2018 14:30:20 +0100 Subject: util.iterators tests: Check value matches expected [luacheck] --- spec/util_iterators_spec.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/util_iterators_spec.lua') 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); -- cgit v1.2.3