From 2d40779a9632326f187b14a4b1ca3c4777b6d4b9 Mon Sep 17 00:00:00 2001 From: Nathan Leniz Date: Sat, 28 Feb 2015 17:33:45 +0900 Subject: [PATCH] Adding missing letters bonfire --- seed_data/bonfires.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/seed_data/bonfires.json b/seed_data/bonfires.json index 695877e722..1795f2d01a 100644 --- a/seed_data/bonfires.json +++ b/seed_data/bonfires.json @@ -297,6 +297,22 @@ "assert.deepEqual(diff([], ['snuffleupagus', 'cookie monster', 'elmo']), ['snuffleupagus', 'cookie monster', 'elmo'], 'empty array');" ] }, + { + "_id": "af7588ade1100bde429baf20", + "name" : "Missing letters", + "difficulty": "2.05", + "description" : [ + "Find the missing letter in the passed letter range and return it.", + "If all letters are present in the range, return undefined." + ], + "challengeSeed": "function fearNotLetter(str) {\n return str;\n}\n\nfearNotLetter('abce');", + "tests": [ + "expect(fearNotLetter('abce')).to.equal('d');", + "expect(fearNotLetter('bcd')).to.be.undefined;", + "expect(fearNotLetter('abcdefghjklmno')).to.equal('i');", + "expect(fearNotLetter('yz')).to.be.undefined;" + ] + }, { "_id": "a77dbc43c33f39daa4429b4f", "name": "Boo who",