Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
cf825b75
...
cf825b758a52f949ad0eb04a6a5d1b7bbe20b9a2
authored
2011-12-14 12:22:05 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added a test for number equality test
1 parent
04ff7bb1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
tests/suites/tester.js
tests/suites/tester.js
View file @
cf825b7
...
...
@@ -5,7 +5,8 @@
t
.
assert
(
casper
.
test
.
testEquals
(
"hi"
,
"hi"
),
'Tester.testEquals() string equality'
);
t
.
assertNot
(
casper
.
test
.
testEquals
(
"hi"
,
"ih"
),
'Tester.testEquals() string inequality'
);
t
.
assert
(
casper
.
test
.
testEquals
(
5
,
5
),
'Tester.testEquals() number equality'
);
t
.
assert
(
casper
.
test
.
testEquals
(
5
,
5.0
),
'Tester.testEquals() cast number equality'
);
t
.
assertNot
(
casper
.
test
.
testEquals
(
"5"
,
5
),
'Tester.testEquals() number equality without implicit cast'
);
t
.
assert
(
casper
.
test
.
testEquals
(
5
,
5.0
),
'Tester.testEquals() number equality with cast'
);
t
.
assertNot
(
casper
.
test
.
testEquals
(
5
,
10
),
'Tester.testEquals() number inequality'
);
t
.
assert
(
casper
.
test
.
testEquals
([],
[]),
'Tester.testEquals() empty array equality'
);
t
.
assert
(
casper
.
test
.
testEquals
([
1
,
2
],
[
1
,
2
]),
'Tester.testEquals() array equality'
);
...
...
Please
register
or
sign in
to post a comment