@@ -5,15 +5,15 @@ test("if", function() {
55 if ( 2 > 0 ) {
66 isPositive = true ;
77 }
8- equal ( __ , isPositive , 'what is the value of isPositive?' ) ;
8+ equal ( true , isPositive , 'what is the value of isPositive?' ) ;
99} ) ;
1010
1111test ( "for" , function ( ) {
1212 var counter = 10 ;
1313 for ( var i = 1 ; i <= 3 ; i ++ ) {
1414 counter = counter + i ;
1515 }
16- equal ( __ , counter , 'what is the value of counter?' ) ;
16+ equal ( 16 , counter , 'what is the value of counter?' ) ;
1717} ) ;
1818
1919test ( "for in" , function ( ) {
@@ -27,15 +27,15 @@ test("for in", function() {
2727 for ( var property_name in person ) {
2828 result = result + property_name ;
2929 } ;
30- equal ( __ , result , 'what is the value of result?' ) ;
30+ equal ( 'nameage' , result , 'what is the value of result?' ) ;
3131} ) ;
3232
3333test ( "ternary operator" , function ( ) {
3434 var fruit = true ? "apple" : "orange" ;
35- equal ( __ , fruit , 'what is the value of fruit?' ) ;
35+ equal ( 'apple' , fruit , 'what is the value of fruit?' ) ;
3636
3737 fruit = false ? "apple" : "orange" ;
38- equal ( __ , fruit , 'now what is the value of fruit?' ) ;
38+ equal ( 'orange' , fruit , 'now what is the value of fruit?' ) ;
3939} ) ;
4040
4141test ( "switch" , function ( ) {
@@ -48,7 +48,7 @@ test("switch", function() {
4848 result = 2 ;
4949 break ;
5050 }
51- equal ( __ , result , 'what is the value of result?' ) ;
51+ equal ( 2 , result , 'what is the value of result?' ) ;
5252} ) ;
5353
5454test ( "switch default case" , function ( ) {
@@ -64,10 +64,10 @@ test("switch default case", function() {
6464 result = "Merry" ;
6565 break ;
6666 }
67- equal ( __ , result , 'what is the value of result?' ) ;
67+ equal ( "Merry" , result , 'what is the value of result?' ) ;
6868} ) ;
6969
7070test ( "null coalescing" , function ( ) {
7171 var result = null || "a value" ;
72- equal ( __ , result , 'what is the value of result?' ) ;
72+ equal ( 'a value' , result , 'what is the value of result?' ) ;
7373} ) ;
0 commit comments