chai-stats icon indicating copy to clipboard operation
chai-stats copied to clipboard

almost.eql should fail for 2D arrays of different sizes

Open ThomWright opened this issue 10 years ago • 0 comments

expect([[1, 2]]).to.eql([[1, 2], [3, 4]]) will fail.

expect([[1, 2]]).to.almost.eql([[1, 2], [3, 4]]) will pass. This should fail like above.

ThomWright avatar Feb 01 '15 20:02 ThomWright