Skip to content

Commit f457648

Browse files
committed
implemented numbers
1 parent b0e2ab6 commit f457648

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

topics/about_numbers.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ module("About Numbers (topics/about_numbers.js)");
44
test("types", function() {
55
var typeOfIntegers = typeof(6);
66
var typeOfFloats = typeof(3.14159);
7-
equals(typeOfIntegers === typeOfFloats, __, 'are ints and floats the same type?');
8-
equals(typeOfIntegers, __, 'what is the javascript numeric type?');
9-
equals(1.0, __, 'what is a integer number equivalent to 1.0?');
7+
equals(typeOfIntegers === typeOfFloats, true, 'are ints and floats the same type?');
8+
equals(typeOfIntegers, "number", 'what is the javascript numeric type?');
9+
equals(1.0, 1, 'what is a integer number equivalent to 1.0?');
1010
});
1111

1212
test("NaN", function() {
1313
var resultOfFailedOperations = 7/'apple';
14-
equals(isNaN(resultOfFailedOperations), __, 'what will satisfy the equals assertion?');
15-
equals(resultOfFailedOperations == NaN, __, 'is NaN == NaN?');
14+
equals(isNaN(resultOfFailedOperations), true, 'what will satisfy the equals assertion?');
15+
equals(resultOfFailedOperations == NaN, false, 'is NaN == NaN?');
1616
});

0 commit comments

Comments
 (0)