@@ -8,15 +8,15 @@ $(document).ready(function(){
88 if ( 2 > 0 ) {
99 isPositive = true ;
1010 }
11- equals ( isPositive , __ , 'what is the value of isPositive?' ) ;
11+ equals ( isPositive , true , 'what is the value of isPositive?' ) ;
1212 } ) ;
1313
1414 test ( "for" , function ( ) {
1515 var counter = 10 ;
1616 for ( var i = 1 ; i <= 3 ; i ++ ) {
1717 counter = counter + i ;
1818 }
19- equals ( counter , __ , 'what is the value of counter?' ) ;
19+ equals ( counter , 16 , 'what is the value of counter?' ) ;
2020 } ) ;
2121
2222 test ( "for in" , function ( ) {
@@ -30,15 +30,15 @@ $(document).ready(function(){
3030 for ( property_name in person ) {
3131 result = result + property_name ;
3232 } ;
33- equals ( result , __ , 'what is the value of result?' ) ;
33+ equals ( result , "nameage" , 'what is the value of result?' ) ;
3434 } ) ;
3535
3636 test ( "ternary operator" , function ( ) {
3737 var fruit = true ? "apple" : "orange" ;
38- equals ( fruit , __ , 'what is the value of fruit?' ) ;
38+ equals ( fruit , "apple" , 'what is the value of fruit?' ) ;
3939
4040 fruit = false ? "apple" : "orange" ;
41- equals ( fruit , __ , 'now what is the value of fruit?' ) ;
41+ equals ( fruit , "orange" , 'now what is the value of fruit?' ) ;
4242 } ) ;
4343
4444 test ( "switch" , function ( ) {
@@ -51,7 +51,7 @@ $(document).ready(function(){
5151 result = 2 ;
5252 break ;
5353 }
54- equals ( result , __ , 'what is the value of result?' ) ;
54+ equals ( result , 2 , 'what is the value of result?' ) ;
5555 } ) ;
5656
5757 test ( "switch default case" , function ( ) {
@@ -67,12 +67,12 @@ $(document).ready(function(){
6767 result = "Merry" ;
6868 break ;
6969 }
70- equals ( result , __ , 'what is the value of result?' ) ;
70+ equals ( result , "Merry" , 'what is the value of result?' ) ;
7171 } ) ;
7272
7373 test ( "null coallescion" , function ( ) {
7474 var result = null || "a value" ;
75- equals ( result , __ , 'what is the value of result?' ) ;
75+ equals ( result , "a value" , 'what is the value of result?' ) ;
7676 } ) ;
7777
7878} ) ;
0 commit comments