added a test for number equality test
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -5,7 +5,8 @@ | ... | @@ -5,7 +5,8 @@ |
5 | t.assert(casper.test.testEquals("hi", "hi"), 'Tester.testEquals() string equality'); | 5 | t.assert(casper.test.testEquals("hi", "hi"), 'Tester.testEquals() string equality'); |
6 | t.assertNot(casper.test.testEquals("hi", "ih"), 'Tester.testEquals() string inequality'); | 6 | t.assertNot(casper.test.testEquals("hi", "ih"), 'Tester.testEquals() string inequality'); |
7 | t.assert(casper.test.testEquals(5, 5), 'Tester.testEquals() number equality'); | 7 | t.assert(casper.test.testEquals(5, 5), 'Tester.testEquals() number equality'); |
8 | t.assert(casper.test.testEquals(5, 5.0), 'Tester.testEquals() cast number equality'); | 8 | t.assertNot(casper.test.testEquals("5", 5), 'Tester.testEquals() number equality without implicit cast'); |
9 | t.assert(casper.test.testEquals(5, 5.0), 'Tester.testEquals() number equality with cast'); | ||
9 | t.assertNot(casper.test.testEquals(5, 10), 'Tester.testEquals() number inequality'); | 10 | t.assertNot(casper.test.testEquals(5, 10), 'Tester.testEquals() number inequality'); |
10 | t.assert(casper.test.testEquals([], []), 'Tester.testEquals() empty array equality'); | 11 | t.assert(casper.test.testEquals([], []), 'Tester.testEquals() empty array equality'); |
11 | t.assert(casper.test.testEquals([1,2], [1,2]), 'Tester.testEquals() array equality'); | 12 | t.assert(casper.test.testEquals([1,2], [1,2]), 'Tester.testEquals() array equality'); | ... | ... |
-
Please register or sign in to post a comment