From 241c5c23964e28a10fdd9af810cc151219038cf6 Mon Sep 17 00:00:00 2001 From: Eric Leung Date: Thu, 4 Feb 2016 23:23:00 -0800 Subject: [PATCH] Add more tests to Slasher Flick and fix formatting - Added two more tests that involve a mix of strings and numbers - Put `n` in code tags - Add missing period in second sentence --- .../basic-bonfires.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-bonfires.json b/seed/challenges/01-front-end-development-certification/basic-bonfires.json index 075eb5fd1e8..4bdf2b90567 100644 --- a/seed/challenges/01-front-end-development-certification/basic-bonfires.json +++ b/seed/challenges/01-front-end-development-certification/basic-bonfires.json @@ -452,8 +452,8 @@ { "id": "ab31c21b530c0dafa9e241ee", "description": [ - "Return the remaining elements of an array after chopping off n elements from the head.", - "The head meaning the beginning of the array, or the zeroth index", + "Return the remaining elements of an array after chopping off n elements from the head.", + "The head means the beginning of the array, or the zeroth index.", "Remember to use Read-Search-Ask if you get stuck. Write your own code." ], "challengeSeed": [ @@ -473,7 +473,9 @@ "assert.deepEqual(slasher([1, 2, 3], 2), [3], 'message: slasher([1, 2, 3], 2) should return [3].');", "assert.deepEqual(slasher([1, 2, 3], 0), [1, 2, 3], 'message: slasher([1, 2, 3], 0) should return [1, 2, 3].');", "assert.deepEqual(slasher([1, 2, 3], 9), [], 'message: slasher([1, 2, 3], 9) should return [].');", - "assert.deepEqual(slasher([1, 2, 3], 4), [], 'message: slasher([1, 2, 3], 4) should return [].');" + "assert.deepEqual(slasher([1, 2, 3], 4), [], 'message: slasher([1, 2, 3], 4) should return [].');", + "assert.deepEqual(slasher(['burgers', 'fries', 'shake'], 1), ['fries', 'shake'], 'message: slasher([\"burgers\", \"fries\", \"shake\"], 1) should return [\"fries\", \"shake\"].');", + "assert.deepEqual(slasher([1, 2, 'chicken', 3, 'potatoes', 'cheese', 4], 5), ['cheese', 4], 'message: slasher([1, 2, \"chicken\", 3, \"potatoes\", \"cheese\", 4], 5) should return [\"cheese\", 4].');" ], "type": "bonfire", "MDNlinks": [