continue work refactoring intermediate-bonfires

This commit is contained in:
Quincy Larson
2015-08-31 23:56:07 -07:00
parent 5b85903ce6
commit b3257a5fb6

View File

@ -134,11 +134,11 @@
"id": "a0b5010f579e69b815e7c5d6", "id": "a0b5010f579e69b815e7c5d6",
"title": "Search and Replace", "title": "Search and Replace",
"tests": [ "tests": [
"assert(replace(\"Let us go to the store\", \"store\", \"mall\") === \"Let us go to the mall\", '.');", "assert(replace(\"Let us go to the store\", \"store\", \"mall\") === \"Let us go to the mall\", '<code>\"Let us go to the store\", \"store\", \"mall\"</code> should return <code>\"Let us go to the mall\", '\"Let us go to the store\", \"store\"</code>.');",
"assert(replace(\"He is Sleeping on the couch\", \"Sleeping\", \"sitting\") === \"He is Sitting on the couch\", '.');", "assert(replace(\"He is Sleeping on the couch\", \"Sleeping\", \"sitting\") === \"He is Sitting on the couch\", '<code>\"He is Sleeping on the couch\", \"Sleeping\", \"sitting\"</code> should return <code>\"He is Sitting on the couch\"</code>.');",
"assert(replace(\"This has a spellngi error\", \"spellngi\", \"spelling\") === \"This has a spelling error\", '.');", "assert(replace(\"This has a spellngi error\", \"spellngi\", \"spelling\") === \"This has a spelling error\", '<code>\"This has a spellngi error\", \"spellngi\", \"spelling\"</code> should return <code>\"This has a spelling error\"</code>.');",
"assert(replace(\"His name is Tom\", \"Tom\", \"john\") === \"His name is John\", '.');", "assert(replace(\"His name is Tom\", \"Tom\", \"john\") === \"His name is John\", '<code>\"His name is Tom\", \"Tom\", \"john\"</code> should return <code>\"His name is John\"</code>.');",
"assert(replace(\"Let us get back to more Coding\", \"Coding\", \"bonfires\") === \"Let us get back to more Bonfires\");" "assert(replace(\"Let us get back to more Coding\", \"Coding\", \"bonfires\") === \"Let us get back to more Bonfires\"), '<code>\"Let us get back to more Coding\", \"Coding\", \"bonfires\"</code> should return <code>\"Let us get back to more Bonfires\"</code>');"
], ],
"difficulty": "2.03", "difficulty": "2.03",
"description": [ "description": [
@ -178,11 +178,11 @@
"id": "aa7697ea2477d1316795783b", "id": "aa7697ea2477d1316795783b",
"title": "Pig Latin", "title": "Pig Latin",
"tests": [ "tests": [
"assert(translate(\"california\") === \"aliforniacay\", '.');", "assert(translate(\"california\") === \"aliforniacay\", '<code>\"california\"</code> should return <code>\"aliforniacay\"</code>.');",
"assert(translate(\"paragraphs\") === \"aragraphspay\", '.');", "assert(translate(\"paragraphs\") === \"aragraphspay\", '<code>\"paragraphs\"</code> should return <code>\"aragraphspay\"</code>.');",
"assert(translate(\"glove\") === \"oveglay\", '.');", "assert(translate(\"glove\") === \"oveglay\", '<code>\"glove\"</code> should return <code>\"oveglay\".');",
"assert(translate(\"algorithm\") === \"algorithmway\", '.');", "assert(translate(\"algorithm\") === \"algorithmway\", '<code>\"algorithm\"</code> should return <code>\"algorithmway\"</code>.');",
"assert(translate(\"eight\") === \"eightway\");" "assert(translate(\"eight\") === \"eightway\"), '<code>\"eight\"</code> should return <code>\"eightway\"</code>.');"
], ],
"difficulty": "2.04", "difficulty": "2.04",
"description": [ "description": [
@ -222,9 +222,9 @@
"id": "afd15382cdfb22c9efe8b7de", "id": "afd15382cdfb22c9efe8b7de",
"title": "DNA Pairing", "title": "DNA Pairing",
"tests": [ "tests": [
"assert.deepEqual(pair(\"ATCGA\"),[['A','T'],['T','A'],['C','G'],['G','C'],['A','T']], 'should return the dna pair', '.');", "assert(pair(\"ATCGA\") === [['A','T'],['T','A'],['C','G'],['G','C'],['A','T']], '<code>\"ATCGA\"</code> should return <code>[['A','T'],['T','A'],['C','G'],['G','C'],['A','T']]</code>.');",
"assert.deepEqual(pair(\"TTGAG\"),[['T','A'],['T','A'],['G','C'],['A','T'],['G','C']], 'should return the dna pair', '.');", "assert(pair(\"TTGAG\") === [['T','A'],['T','A'],['G','C'],['A','T'],['G','C']], '<code>\"TTGAG\"</code> should return <code>[['T','A'],['T','A'],['G','C'],['A','T'],['G','C']]</code>.');",
"assert.deepEqual(pair(\"CTCTA\"),[['C','G'],['T','A'],['C','G'],['T','A'],['A','T']], 'should return the dna pair');" "assert(pair(\"CTCTA\") === [['C','G'],['T','A'],['C','G'],['T','A'],['A','T']], '<code>\"CTCTA\"</code> should return <code>[['C','G'],['T','A'],['C','G'],['T','A'],['A','T']]</code>.');"
], ],
"difficulty": "2.05", "difficulty": "2.05",
"description": [ "description": [
@ -277,9 +277,9 @@
], ],
"tests": [ "tests": [
"assert(fearNotLetter('abce') === 'd', '.');", "assert(fearNotLetter('abce') === 'd', '.');",
"assert(fearNotLetter('bcd')).to.be.undefined;", "assert(fearNotLetter('bcd')) === undefined, '.');",
"assert(fearNotLetter('abcdefghjklmno') === 'i', '.');", "assert(fearNotLetter('abcdefghjklmno') === 'i', '.');",
"assert(fearNotLetter('yz')).to.be.undefined;" "assert(fearNotLetter('yz')) === undefined, '.');"
], ],
"MDNlinks": [ "MDNlinks": [
"String.charCodeAt()", "String.charCodeAt()",