Hash equality
-
TJ Holowaychuk
- State changed from new to open
- Tag set to bug
- Assigned user set to TJ Holowaychuk
- Milestone set to 3.0
True, your right. It does require that the order is the same.
I agree that hashes should allow arbitrary order, however arrays I would argue that they should not
since many specs utilize this to check order as well.Perhaps you should use:
One a side note, if you want arguments as an array simply do:args.should.include 9, 8, 7
Array.prototype.slice.call(arguments) -
TJ Holowaychuk
- Title changed from Bug when testing for array equality to Hash equality
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.