This makes the message clearer when tables look the same but are not equal. Down side of this change is that the problem is shifted to the same assertion, which now becomes less clear.
Yet, because equal is more frequently used than same, this makes sense anyway.
This format changes the table serialization, by including the table id
Previous
assert.are.equal({},{})
output:New
assert.are.equal({},{})
output:This makes the message clearer when tables look the same but are not
equal
. Down side of this change is that the problem is shifted to thesame
assertion, which now becomes less clear.Yet, because equal is more frequently used than same, this makes sense anyway.