Closed Broham closed 11 years ago
.equal()
is effectively ===
, and .eql()
is an algorithm similar to node's assert.deepEquals()
Shouldn't one of the methods that I tried work then? Why is using a regex match the only way I can successfully test equality?
well what is that value?
I have been having some trouble checking for equality of numbers. I have the following check witch always fails:
The logging shows what I would expect, the number 4. But for some reason this always fails. I have also tried the following:
but none work. I was finally able to get it working with the following line:
But it seems odd that none of the above worked. What would be the correct way to do this?