Skip to content

Commit a9cbecb

Browse files
committed
cont.
1 parent 5a763bb commit a9cbecb

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

topics/about_equality.js

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11

2-
$(document).ready(function(){
2+
module("About Equality (topics/about_equality.js)");
33

4-
module("About Equality (topics/about_equality.js)");
5-
6-
test("numeric equality", function() {
7-
equals(3 + __, 7, 'hmmmm?');
8-
});
9-
10-
test("string equality", function() {
11-
equals("3" + __, "37", "concatenate the strings");
12-
});
13-
14-
test("equality without type coercion", function() {
15-
ok(3 === __, 'what is exactly equal to 3?');
16-
});
4+
test("numeric equality", function() {
5+
equals(3 + __, 7, 'hmmmm?');
6+
});
177

18-
test("equality with type coercion", function() {
19-
ok(3 == "__", 'what string is equal to 3, with type coercion?');
20-
});
8+
test("string equality", function() {
9+
equals("3" + __, "37", "concatenate the strings");
10+
});
2111

22-
test("string literals", function() {
23-
equals("frankenstein", '__', "quote types are interchangable, but must match.");
24-
});
12+
test("equality without type coercion", function() {
13+
ok(3 === __, 'what is exactly equal to 3?');
14+
});
2515

16+
test("equality with type coercion", function() {
17+
ok(3 == "__", 'what string is equal to 3, with type coercion?');
2618
});
2719

20+
test("string literals", function() {
21+
equals("frankenstein", '__', "quote types are interchangable, but must match.");
22+
});

0 commit comments

Comments
 (0)