|
1 | 1 |
|
2 |
| -$(document).ready(function(){ |
| 2 | +module("About Equality (topics/about_equality.js)"); |
3 | 3 |
|
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 | +}); |
17 | 7 |
|
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 | +}); |
21 | 11 |
|
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 | +}); |
25 | 15 |
|
| 16 | +test("equality with type coercion", function() { |
| 17 | + ok(3 == "__", 'what string is equal to 3, with type coercion?'); |
26 | 18 | });
|
27 | 19 |
|
| 20 | +test("string literals", function() { |
| 21 | + equals("frankenstein", '__', "quote types are interchangable, but must match."); |
| 22 | +}); |
0 commit comments