From b3257a5fb6df5b2bdeea2258923bf3729bbc8a1a Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Mon, 31 Aug 2015 23:56:07 -0700 Subject: [PATCH] continue work refactoring intermediate-bonfires --- challenges/intermediate-bonfires.json | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/challenges/intermediate-bonfires.json b/challenges/intermediate-bonfires.json index aa63b11576..f71e33b368 100644 --- a/challenges/intermediate-bonfires.json +++ b/challenges/intermediate-bonfires.json @@ -134,11 +134,11 @@ "id": "a0b5010f579e69b815e7c5d6", "title": "Search and Replace", "tests": [ - "assert(replace(\"Let us go to the store\", \"store\", \"mall\") === \"Let us go to the mall\", '.');", - "assert(replace(\"He is Sleeping on the couch\", \"Sleeping\", \"sitting\") === \"He is Sitting on the couch\", '.');", - "assert(replace(\"This has a spellngi error\", \"spellngi\", \"spelling\") === \"This has a spelling error\", '.');", - "assert(replace(\"His name is Tom\", \"Tom\", \"john\") === \"His name is John\", '.');", - "assert(replace(\"Let us get back to more Coding\", \"Coding\", \"bonfires\") === \"Let us get back to more Bonfires\");" + "assert(replace(\"Let us go to the store\", \"store\", \"mall\") === \"Let us go to the mall\", '\"Let us go to the store\", \"store\", \"mall\" should return \"Let us go to the mall\", '\"Let us go to the store\", \"store\".');", + "assert(replace(\"He is Sleeping on the couch\", \"Sleeping\", \"sitting\") === \"He is Sitting on the couch\", '\"He is Sleeping on the couch\", \"Sleeping\", \"sitting\" should return \"He is Sitting on the couch\".');", + "assert(replace(\"This has a spellngi error\", \"spellngi\", \"spelling\") === \"This has a spelling error\", '\"This has a spellngi error\", \"spellngi\", \"spelling\" should return \"This has a spelling error\".');", + "assert(replace(\"His name is Tom\", \"Tom\", \"john\") === \"His name is John\", '\"His name is Tom\", \"Tom\", \"john\" should return \"His name is John\".');", + "assert(replace(\"Let us get back to more Coding\", \"Coding\", \"bonfires\") === \"Let us get back to more Bonfires\"), '\"Let us get back to more Coding\", \"Coding\", \"bonfires\" should return \"Let us get back to more Bonfires\"');" ], "difficulty": "2.03", "description": [ @@ -178,11 +178,11 @@ "id": "aa7697ea2477d1316795783b", "title": "Pig Latin", "tests": [ - "assert(translate(\"california\") === \"aliforniacay\", '.');", - "assert(translate(\"paragraphs\") === \"aragraphspay\", '.');", - "assert(translate(\"glove\") === \"oveglay\", '.');", - "assert(translate(\"algorithm\") === \"algorithmway\", '.');", - "assert(translate(\"eight\") === \"eightway\");" + "assert(translate(\"california\") === \"aliforniacay\", '\"california\" should return \"aliforniacay\".');", + "assert(translate(\"paragraphs\") === \"aragraphspay\", '\"paragraphs\" should return \"aragraphspay\".');", + "assert(translate(\"glove\") === \"oveglay\", '\"glove\" should return \"oveglay\".');", + "assert(translate(\"algorithm\") === \"algorithmway\", '\"algorithm\" should return \"algorithmway\".');", + "assert(translate(\"eight\") === \"eightway\"), '\"eight\" should return \"eightway\".');" ], "difficulty": "2.04", "description": [ @@ -222,9 +222,9 @@ "id": "afd15382cdfb22c9efe8b7de", "title": "DNA Pairing", "tests": [ - "assert.deepEqual(pair(\"ATCGA\"),[['A','T'],['T','A'],['C','G'],['G','C'],['A','T']], 'should return the dna pair', '.');", - "assert.deepEqual(pair(\"TTGAG\"),[['T','A'],['T','A'],['G','C'],['A','T'],['G','C']], 'should return the dna pair', '.');", - "assert.deepEqual(pair(\"CTCTA\"),[['C','G'],['T','A'],['C','G'],['T','A'],['A','T']], 'should return the dna pair');" + "assert(pair(\"ATCGA\") === [['A','T'],['T','A'],['C','G'],['G','C'],['A','T']], '\"ATCGA\" should return [['A','T'],['T','A'],['C','G'],['G','C'],['A','T']].');", + "assert(pair(\"TTGAG\") === [['T','A'],['T','A'],['G','C'],['A','T'],['G','C']], '\"TTGAG\" should return [['T','A'],['T','A'],['G','C'],['A','T'],['G','C']].');", + "assert(pair(\"CTCTA\") === [['C','G'],['T','A'],['C','G'],['T','A'],['A','T']], '\"CTCTA\" should return [['C','G'],['T','A'],['C','G'],['T','A'],['A','T']].');" ], "difficulty": "2.05", "description": [ @@ -277,9 +277,9 @@ ], "tests": [ "assert(fearNotLetter('abce') === 'd', '.');", - "assert(fearNotLetter('bcd')).to.be.undefined;", + "assert(fearNotLetter('bcd')) === undefined, '.');", "assert(fearNotLetter('abcdefghjklmno') === 'i', '.');", - "assert(fearNotLetter('yz')).to.be.undefined;" + "assert(fearNotLetter('yz')) === undefined, '.');" ], "MDNlinks": [ "String.charCodeAt()",