@@ -6,33 +6,33 @@ $(document).ready(function(){
6
6
test ( "delimiters" , function ( ) {
7
7
var singleQuotedString = 'apple' ;
8
8
var doubleQuotedString = "apple" ;
9
- equals ( singleQuotedString === doubleQuotedString , __ , 'are the two strings equal?' ) ;
9
+ equals ( singleQuotedString === doubleQuotedString , true , 'are the two strings equal?' ) ;
10
10
} ) ;
11
11
12
12
test ( "concatenation" , function ( ) {
13
13
var fruit = "apple" ;
14
14
var dish = "pie" ;
15
- equals ( fruit + " " + dish , __ , 'what is the value of fruit + " " + dish?' ) ;
15
+ equals ( fruit + " " + dish , "apple pie" , 'what is the value of fruit + " " + dish?' ) ;
16
16
} ) ;
17
17
18
18
test ( "character Type" , function ( ) {
19
19
var characterType = typeof ( "Amory" . charAt ( 1 ) ) ; // typeof will be explained in about reflection
20
- equals ( characterType , __ , 'Javascript has no character type' ) ;
20
+ equals ( characterType , "string" , 'Javascript has no character type' ) ;
21
21
} ) ;
22
22
23
23
test ( "escape character" , function ( ) {
24
24
var stringWithAnEscapedCharacter = "\u0041pple" ;
25
- equals ( stringWithAnEscapedCharacter , __ , 'what is the value of stringWithAnEscapedCharacter?' ) ;
25
+ equals ( stringWithAnEscapedCharacter , "Apple" , 'what is the value of stringWithAnEscapedCharacter?' ) ;
26
26
} ) ;
27
27
28
28
test ( "string.length" , function ( ) {
29
29
var fruit = "apple" ;
30
- equals ( fruit . length , __ , 'what is the value of fruit.length?' ) ;
30
+ equals ( fruit . length , 5 , 'what is the value of fruit.length?' ) ;
31
31
} ) ;
32
32
33
33
test ( "slice" , function ( ) {
34
34
var fruit = "apple pie" ;
35
- equals ( fruit . slice ( 0 , 5 ) , __ , 'what is the value of fruit.slice(0,5)?' ) ;
35
+ equals ( fruit . slice ( 0 , 5 ) , "apple" , 'what is the value of fruit.slice(0,5)?' ) ;
36
36
} ) ;
37
37
38
38
} ) ;
0 commit comments