@@ -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- 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
1212test ( "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