Comments (3)
Never mind, this seems to be an underlying problem with Javascript. I'm just comparing the strings for now.
from should.js.
.equal
is a strict equal. And [] !== []
. That's why it fails. Two newly created arrays aren't the same. AFAIK .eql()
should work though.
from should.js.
yup .eql()
is for "lose equality", bit of a rubyism naming-wise
from should.js.
Related Issues (20)
- Fails to compare two objects with booleans? HOT 4
- Too generic error message in custom assertion HOT 2
- Please remove the registry of bower HOT 4
- .exist() for syntactic consistency HOT 2
- greater equal always fails HOT 1
- move repo to "shouldjs" org
- How to assert if string is lexicographical after/before ? HOT 1
- Assertion Error location is wrong
- ('hui').should.be.a.Number; - passing test HOT 2
- true.should.be.false is passing HOT 1
- Why {false.should.be.ok} can pass test HOT 2
- Modify the README.md
- How to assert date having ISO 8601 format HOT 3
- Cannot figure out what's wrong with '.keys()' method
- Exist function doesn't work in as-function mode
- Issue with Typescript
- propteries() fails when passing custom error message
- `rejectedWith` Gives GIANT unreadable message (for humans) when fails
- DeepEqual Tests failing for identical Sets
- IMPROVING TESTING ROBUSTNESS IN HANDLING AND GENERATING "Access-Control-Allow-Headers" HEADER
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from should.js.