|
1 | 1 |
|
2 |
| -$(document).ready(function(){ |
| 2 | +module("About Truthyness (topics/about_truthyness.js)"); |
3 | 3 |
|
4 |
| - module("About Truthyness (topics/about_truthyness.js)"); |
| 4 | +test("truthyness of positive numbers", function() { |
| 5 | + var oneIsTruthy = 1 ? true : false; |
| 6 | + equals(oneIsTruthy, __, 'is one truthy?'); |
| 7 | +}); |
| 8 | + |
| 9 | +test("truthyness of negative numbers", function() { |
| 10 | + var negativeOneIsTruthy = -1 ? true : false; |
| 11 | + equals(negativeOneIsTruthy, __, 'is -1 truthy?'); |
| 12 | +}); |
5 | 13 |
|
6 |
| - test("truthyness of positive numbers", function() { |
7 |
| - var oneIsTruthy = 1 ? true : false; |
8 |
| - equals(oneIsTruthy, __, 'is one truthy?'); |
9 |
| - }); |
10 |
| - |
11 |
| - test("truthyness of negative numbers", function() { |
12 |
| - var negativeOneIsTruthy = -1 ? true : false; |
13 |
| - equals(negativeOneIsTruthy, __, 'is -1 truthy?'); |
14 |
| - }); |
15 |
| - |
16 |
| - test("truthyness of zero", function() { |
17 |
| - var zeroIsTruthy = 0 ? true : false; |
18 |
| - equals(zeroIsTruthy, __, 'is 0 truthy?'); |
19 |
| - }); |
| 14 | +test("truthyness of zero", function() { |
| 15 | + var zeroIsTruthy = 0 ? true : false; |
| 16 | + equals(zeroIsTruthy, __, 'is 0 truthy?'); |
| 17 | +}); |
20 | 18 |
|
21 |
| - test("truthyness of null", function() { |
22 |
| - var nullIsTruthy = null ? true : false; |
23 |
| - equals(nullIsTruthy, __, 'is null truthy?'); |
24 |
| - }); |
25 |
| - |
| 19 | +test("truthyness of null", function() { |
| 20 | + var nullIsTruthy = null ? true : false; |
| 21 | + equals(nullIsTruthy, __, 'is null truthy?'); |
26 | 22 | });
|
0 commit comments