
module("About Strings (topics/about_strings.js)");

test("delimiters", function() {
    var singleQuotedString = 'apple';
    var doubleQuotedString = "apple";
    equal(__, singleQuotedString === doubleQuotedString, 'are the two strings equal?');
});

test("concatenation", function() {
    var fruit = "apple";
    var dish = "pie";
    equal(__, fruit + " " + dish, 'what is the value of fruit + " " + dish?');
});

test("character Type", function() {
    var characterType = typeof("Amory".charAt(1)); // typeof will be explained in about reflection
    equal(__, characterType, 'Javascript has no character type');
});

test("escape character", function() {
    var stringWithAnEscapedCharacter  = "\u0041pple";
    equal(__, stringWithAnEscapedCharacter, 'what  is the value of stringWithAnEscapedCharacter?');
});

test("string.length", function() {
    var fruit = "apple";
    equal(__, fruit.length, 'what is the value of fruit.length?');
});

test("slice", function() {
    var fruit = "apple pie";
    equal(__, fruit.slice(0,5), 'what is the value of fruit.slice(0,5)?');
});

@@ -164,18 +164,20 @@
   equal(
-__
+true
 , single
@@ -337,26 +337,35 @@
 ;%0A    equal(
-__
+%22apple pie%22
 , fruit + %22 
@@ -569,18 +569,24 @@
   equal(
-__
+%22string%22
 , charac
@@ -738,18 +738,23 @@
   equal(
-__
+%22Apple%22
 , string
@@ -900,34 +900,33 @@
 ple%22;%0A    equal(
-__
+5
 , fruit.length, 
@@ -1039,10 +1039,15 @@
 ual(
-__
+%22apple%22
 , fr
@@ -1100,17 +1100,16 @@
 ice(0,5)?');%0A%7D);
-%0A

Resolve about strings