Skip to content

Commit 475aa7c

Browse files
committed
Improve error message for table inequality in tests
1 parent e24a746 commit 475aa7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/compare.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function export.eq(a, b)
3131
end
3232
for k in pairs(b) do
3333
if not mark[k] then
34-
return false, string.format(".%s: missing key in result", k)
34+
return false, string.format(".%s: unexpected key in result", k)
3535
end
3636
end
3737
return true

0 commit comments

Comments
 (0)