@@ -4,13 +4,13 @@ module("About Numbers (topics/about_numbers.js)");
44test ( "types" , function ( ) {
55 var typeOfIntegers = typeof ( 6 ) ;
66 var typeOfFloats = typeof ( 3.14159 ) ;
7- equal ( __ , typeOfIntegers === typeOfFloats , 'are ints and floats the same type?' ) ;
8- equal ( __ , typeOfIntegers , 'what is the javascript numeric type?' ) ;
9- equal ( __ , 1.0 , 'what is a integer number equivalent to 1.0?' ) ;
7+ equal ( true , typeOfIntegers === typeOfFloats , 'are ints and floats the same type?' ) ;
8+ equal ( "number" , typeOfIntegers , 'what is the javascript numeric type?' ) ;
9+ equal ( 1 , 1.0 , 'what is a integer number equivalent to 1.0?' ) ;
1010} ) ;
1111
1212test ( "NaN" , function ( ) {
1313 var resultOfFailedOperations = 7 / 'apple' ;
14- equal ( __ , isNaN ( resultOfFailedOperations ) , 'what will satisfy the equals assertion?' ) ;
15- equal ( __ , resultOfFailedOperations == NaN , 'is NaN == NaN?' ) ;
14+ equal ( true , isNaN ( resultOfFailedOperations ) , 'what will satisfy the equals assertion?' ) ;
15+ equal ( false , resultOfFailedOperations == NaN , 'is NaN == NaN?' ) ;
1616} ) ;
0 commit comments