Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

containDeep erroneously passes when comparing array with a string value to a string value within object #157

Closed
seongju opened this issue Oct 16, 2017 · 1 comment · May be fixed by rona-dinihari/node-tesseract#7

Comments

@seongju
Copy link

seongju commented Oct 16, 2017

I think I may have stumbled across a bug using containDeep.
screen shot 2017-10-16 at 11 33 12 am

According to the documentation, it seems that containDeep should have failed this assertion because for an object...

it checks that the same keys contain deep equal values (recursive)

Node.js version?

8.1.4

Should.js version?

11.2.1

How to reproduce it?

See above screenshot.

@btd
Copy link
Member

btd commented Oct 28, 2017

Yep, looks like a bug to me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants