module("About Arrays (topics/about_arrays.js)");

test("array literal syntax and indexing", function() {
    var favouriteThings = ["cellar door", 42, true]; // note that array elements do not have to be of the same type
    equal(__, favouriteThings[0], 'what is in the first position of the array?');
    equal(__, favouriteThings[1], 'what is in the second position of the array?');
    equal(__, favouriteThings[2], 'what is in the third position of the array?');
});

test("array type", function() {
    equal(__, typeof([]), 'what is the type of an array?');
});

test("length", function() {
    var collection = ['a','b','c'];
    equal(__, collection.length, 'what is the length of the collection array?');
});

test("splice", function() {
    var daysOfWeek = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
    var workingWeek = daysOfWeek.splice(__, __);
    ok(workingWeek.equalTo([__]), 'what is the value of workingWeek?');
    ok(daysOfWeek.equalTo([__]), 'what is the value of daysOfWeek?');
});

test("stack methods", function() {
    var stack = [];
    stack.push("first");
    stack.push("second");

    equal(__, stack.pop(), 'what will be the first value popped off the stack?');
    equal(__, stack.pop(), 'what will be the second value popped off the stack?');
});

test("queue methods", function() {
    var queue = [];
    queue.push("first");
    queue.push("second");
    queue.unshift("third");

    equal(__, queue.shift(), 'what will be shifted out first?');
    equal(__, queue.shift(), 'what will be shifted out second?');
});

@@ -216,34 +216,45 @@
  type%0A    equal(
-__
+%22cellar door%22
 , favouriteThing
@@ -309,34 +309,34 @@
 y?');%0A    equal(
-__
+42
 , favouriteThing
@@ -400,18 +400,20 @@
   equal(
-__
+true
 , favour
@@ -521,18 +521,24 @@
   equal(
-__
+%22object%22
 , typeof
@@ -656,18 +656,17 @@
   equal(
-__
+3
 , collec
@@ -904,14 +904,12 @@
 ice(
-__, __
+0, 5
 );%0A 
@@ -927,34 +927,86 @@
 ngWeek.equalTo(%5B
-__
+%22Monday%22, %22Tuesday%22, %22Wednesday%22, %22Thursday%22, %22Friday%22
 %5D), 'what is the
@@ -1058,18 +1058,36 @@
 qualTo(%5B
-__
+%22Saturday%22, %22Sunday%22
 %5D), 'wha
@@ -1233,34 +1233,40 @@
 d%22);%0A%0A    equal(
-__
+%22second%22
 , stack.pop(), '
@@ -1329,18 +1329,23 @@
   equal(
-__
+%22first%22
 , stack.
@@ -1549,34 +1549,39 @@
 d%22);%0A%0A    equal(
-__
+%22third%22
 , queue.shift(),
@@ -1631,10 +1631,15 @@
 ual(
-__
+%22first%22
 , qu

Fix arrays' koans