-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eql
and equal
too similar words
#21
Comments
Hey! Thanks for caring! The inspiration for Having said that, I get what your liking of the "deep" prefix. What do you think? Should Just to clarify, the looseness of As Must.js hasn't hit v1.0.0 yet (but it should), we can still do a few breaking changes. And add a migration-helper sed script, of course. ^_^. Ideas, @koresar? |
👍 Yeah that would be great! |
Would you agree that recursiveness should only apply to plain objects and arrays? The rest, in What, do you reckon, should {}.must.eql({}) // fail
[].must.eql([]) // fail
5..must.eql(5) // pass
new Date(2000, 5).must.eql(new Date(2000, 5)) // pass |
Good question. E.g.
This is what seems most logical to me. However, it will be pretty nightmarish to migrate tests I think. So, the easiest solution would be to alias |
The naming of functions in the must.js is somewhat confusing (see #6). I agree with @creynders on that.
I'd rename
I'd rename |
+1 for deepEqual to alias eql |
Is there a specific reason you didn't want to use
deepEqual
ordeep.equal
?All the other assertions are pretty readable, but I constantly need to double-check
eql
orequal
. Also, IMO, it's a weird discrepancy in the API. Intuitively I'd thinkeql
is an alias forequal
, likegt
et cetera.The text was updated successfully, but these errors were encountered: