diff --git a/challenges/advanced-bonfires.json b/challenges/advanced-bonfires.json index e14504dba4..978ebe81ce 100644 --- a/challenges/advanced-bonfires.json +++ b/challenges/advanced-bonfires.json @@ -230,7 +230,7 @@ "permAlone('aab');" ], "tests": [ - "expect(permAlone('aab')).to.be.a.number;", + "expect(permAlone('aab')).to.be.a('number');", "expect(permAlone('aab')).to.equal(2);", "expect(permAlone('aaa')).to.equal(0);", "expect(permAlone('aabb')).to.equal(8);", diff --git a/challenges/basic-bonfires.json b/challenges/basic-bonfires.json index 11274ec1a7..ae9b0b571a 100644 --- a/challenges/basic-bonfires.json +++ b/challenges/basic-bonfires.json @@ -423,6 +423,7 @@ ], "tests": [ "expect(truncate('A-tisket a-tasket A green and yellow basket', 11)).to.eqls('A-tisket...');", + "expect(truncate('Peter Piper picked a peck of pickled peppers', 14)).to.eqls('Peter Piper...');", "assert(truncate('A-tisket a-tasket A green and yellow basket', 'A-tisket a-tasket A green and yellow basket'.length) === 'A-tisket a-tasket A green and yellow basket', 'should not truncate if string is = length');", "assert.strictEqual(truncate('A-tisket a-tasket A green and yellow basket', 'A-tisket a-tasket A green and yellow basket'.length + 2), 'A-tisket a-tasket A green and yellow basket', 'should not truncate if string is < length');" ], @@ -657,7 +658,10 @@ ], "tests": [ "assert.deepEqual(destroyer([1, 2, 3, 1, 2, 3], 2, 3), [1, 1], 'should remove correct values from an array');", - "assert.deepEqual(destroyer([1, 2, 3, 5, 1, 2, 3], 2, 3), [1, 5, 1], 'should remove correct values from an array');" + "assert.deepEqual(destroyer([1, 2, 3, 5, 1, 2, 3], 2, 3), [1, 5, 1], 'should remove correct values from an array');", + "assert.deepEqual(destroyer([3, 5, 1, 2, 2], 2, 3, 5), [1], 'should accept more than two additional arguments');", + "assert.deepEqual(destroyer([2, 3, 2, 3], 2, 3), [], 'should remove correct values from an array');", + "assert.deepEqual(destroyer(['tree', 'hamburger', 53], 'tree', 53), ['hamburger'], 'should handle NaN-elements');" ], "MDNlinks": [ "Arguments object", diff --git a/field-guides.json b/field-guides.json index 2de429b569..9d3e906d16 100644 --- a/field-guides.json +++ b/field-guides.json @@ -863,7 +863,7 @@ "description": [ "
", "

Translation is an all-or-nothing proposal.", - "

We won't be able to add new languages to Free Code Camp until all of our challenges are translated into that langauge.

", + "

We won't be able to add new languages to Free Code Camp until all of our challenges are translated into that language.

", "

In addition to translating these initially, we'll also need to maintain the translation as the challenges are gradually updated.

", "

If you're able to help us, you can join our Trello board by sending @quincylarson your email address in Slack.

", "
"