Skip to content

Commit 6598a8b

Browse files
committed
Number tests passing
1 parent 13a14e1 commit 6598a8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

topics/about_numbers.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ $(document).ready(function(){
66
test("types", function() {
77
var typeOfIntegers = typeof(6);
88
var typeOfFloats = typeof(3.14159);
9-
equals(typeOfIntegers === typeOfFloats, __, 'are ints and floats the same type?');
10-
equals(typeOfIntegers, __, 'what is the javascript numeric type?');
11-
equals(1.0, __, 'what is a integer number equivalent to 1.0?');
9+
equals(typeOfIntegers === typeOfFloats, true, 'are ints and floats the same type?');
10+
equals(typeOfIntegers, "number", 'what is the javascript numeric type?');
11+
equals(1.0, 1, 'what is a integer number equivalent to 1.0?');
1212
});
1313

1414
test("NaN", function() {
1515
var resultOfFailedOperations = 7/'apple';
16-
equals(isNaN(resultOfFailedOperations), __, 'what will satisfy the equals assertion?');
17-
equals(resultOfFailedOperations == NaN, __, 'is NaN == NaN?');
16+
equals(isNaN(resultOfFailedOperations), true, 'what will satisfy the equals assertion?');
17+
equals(resultOfFailedOperations == NaN, false, 'is NaN == NaN?');
1818
});
1919

2020
});

0 commit comments

Comments
 (0)