revert intermediate-bonfires to previous state for another camper to tackle

This commit is contained in:
Quincy Larson
2015-09-14 14:57:14 -07:00
parent 6c7c8bbc04
commit ac51c6efb9

View File

@ -19,11 +19,11 @@
"sumAll([1, 4]);" "sumAll([1, 4]);"
], ],
"tests": [ "tests": [
"assert(typeof(sumAll([1, 4])) === 'number', '.');", "expect(sumAll([1, 4])).to.be.a('Number');",
"assert(sumAll([1, 4]) === 10, '<code>[1, 4]</code> should return <code>10</code>.');", "expect(sumAll([1, 4])).to.equal(10);",
"assert(sumAll([4, 1]) === 10, '<code>[4, 1]</code> should return <code>10</code>.');", "expect(sumAll([4, 1])).to.equal(10);",
"assert(sumAll([5, 10]) === 45, '<code>[5, 10]</code> should return <code>45</code>.');", "expect(sumAll([5, 10])).to.equal(45);",
"assert(sumAll([10, 5]) === 45, '<code>[10, 5]</code> should return <code>45</code>';" "expect(sumAll([10, 5])).to.equal(45);"
], ],
"MDNlinks": [ "MDNlinks": [
"Math.max()", "Math.max()",
@ -61,13 +61,13 @@
"diff([1, 2, 3, 5], [1, 2, 3, 4, 5]);" "diff([1, 2, 3, 5], [1, 2, 3, 4, 5]);"
], ],
"tests": [ "tests": [
"assert(typeof(diff([1, 2, 3, 5], [1, 2, 3, 4, 5])) === 'array', '<code>diff&#40;&#41;</code> should return an array.');", "expect(diff([1, 2, 3, 5], [1, 2, 3, 4, 5])).to.be.a('array');",
"assert(diff(['diorite', 'andesite', 'grass', 'dirt', 'pink wool', 'dead shrub'], ['diorite', 'andesite', 'grass', 'dirt', 'dead shrub']) === ['pink wool'], '<code>['diorite', 'andesite', 'grass', 'dirt', 'pink wool', 'dead shrub'], ['diorite', 'andesite', 'grass', 'dirt', 'dead shrub']<code> should return <code>['pink wool']</code>.');", "assert.deepEqual(diff(['diorite', 'andesite', 'grass', 'dirt', 'pink wool', 'dead shrub'], ['diorite', 'andesite', 'grass', 'dirt', 'dead shrub']), ['pink wool'], 'arrays with only one difference');",
"assert(diff(['andesite', 'grass', 'dirt', 'dead shrub'], ['andesite', 'grass', 'dirt', 'dead shrub']), [], 'arrays with no difference', '.');", "assert.includeMembers(diff(['andesite', 'grass', 'dirt', 'pink wool', 'dead shrub'], ['diorite', 'andesite', 'grass', 'dirt', 'dead shrub']), ['diorite', 'pink wool'], 'arrays with more than one difference');",
"assert(diff([1, 2, 3, 5], [1, 2, 3, 4, 5]) === [4], 'arrays with numbers', '.');", "assert.deepEqual(diff(['andesite', 'grass', 'dirt', 'dead shrub'], ['andesite', 'grass', 'dirt', 'dead shrub']), [], 'arrays with no difference');",
"assert(diff([], ['snuffleupagus', 'cookie monster', 'elmo']), ['snuffleupagus', 'cookie monster', 'elmo'], 'empty array');", "assert.deepEqual(diff([1, 2, 3, 5], [1, 2, 3, 4, 5]), [4], 'arrays with numbers');",
"assert.includeMembers(diff([1, 'calf', 3, 'piglet'], [1, 'calf', 3, 4]), ['piglet', 4], 'arrays with numbers and strings', '.');", "assert.includeMembers(diff([1, 'calf', 3, 'piglet'], [1, 'calf', 3, 4]), ['piglet', 4], 'arrays with numbers and strings');",
"assert.includeMembers(diff(['andesite', 'grass', 'dirt', 'pink wool', 'dead shrub'], ['diorite', 'andesite', 'grass', 'dirt', 'dead shrub']), ['diorite', 'pink wool'], 'arrays with more than one difference', '.');" "assert.deepEqual(diff([], ['snuffleupagus', 'cookie monster', 'elmo']), ['snuffleupagus', 'cookie monster', 'elmo'], 'empty array');"
], ],
"MDNlinks": [ "MDNlinks": [
"Comparison Operators", "Comparison Operators",
@ -93,11 +93,11 @@
"id": "a7f4d8f2483413a6ce226cac", "id": "a7f4d8f2483413a6ce226cac",
"title": "Roman Numeral Converter", "title": "Roman Numeral Converter",
"tests": [ "tests": [
"assert(convert(12) === \"XII\");", "expect(convert(12)).to.equal(\"XII\");",
"assert(convert(5) === \"V\");", "expect(convert(5)).to.equal(\"V\");",
"assert(convert(9) === \"IX\");", "expect(convert(9)).to.equal(\"IX\");",
"assert(convert(29) === \"XXIX\");", "expect(convert(29)).to.equal(\"XXIX\");",
"assert(convert(16) === \"XVI\");" "expect(convert(16)).to.equal(\"XVI\");"
], ],
"difficulty": "2.02", "difficulty": "2.02",
"description": [ "description": [
@ -177,11 +177,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\", '<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>.');", "expect(replace(\"Let us go to the store\", \"store\", \"mall\")).to.equal(\"Let us go to the mall\");",
"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>.');", "expect(replace(\"He is Sleeping on the couch\", \"Sleeping\", \"sitting\")).to.equal(\"He is Sitting on the couch\");",
"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>.');", "expect(replace(\"This has a spellngi error\", \"spellngi\", \"spelling\")).to.equal(\"This has a spelling error\");",
"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>.');", "expect(replace(\"His name is Tom\", \"Tom\", \"john\")).to.equal(\"His name is John\");",
"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>');" "expect(replace(\"Let us get back to more Coding\", \"Coding\", \"bonfires\")).to.equal(\"Let us get back to more Bonfires\");"
], ],
"difficulty": "2.035", "difficulty": "2.035",
"description": [ "description": [
@ -221,11 +221,11 @@
"id": "aa7697ea2477d1316795783b", "id": "aa7697ea2477d1316795783b",
"title": "Pig Latin", "title": "Pig Latin",
"tests": [ "tests": [
"assert(translate(\"california\") === \"aliforniacay\", '<code>\"california\"</code> should return <code>\"aliforniacay\"</code>.');", "expect(translate(\"california\")).to.equal(\"aliforniacay\");",
"assert(translate(\"paragraphs\") === \"aragraphspay\", '<code>\"paragraphs\"</code> should return <code>\"aragraphspay\"</code>.');", "expect(translate(\"paragraphs\")).to.equal(\"aragraphspay\");",
"assert(translate(\"glove\") === \"oveglay\", '<code>\"glove\"</code> should return <code>\"oveglay\".');", "expect(translate(\"glove\")).to.equal(\"oveglay\");",
"assert(translate(\"algorithm\") === \"algorithmway\", '<code>\"algorithm\"</code> should return <code>\"algorithmway\"</code>.');", "expect(translate(\"algorithm\")).to.equal(\"algorithmway\");",
"assert(translate(\"eight\") === \"eightway\"), '<code>\"eight\"</code> should return <code>\"eightway\"</code>.');" "expect(translate(\"eight\")).to.equal(\"eightway\");"
], ],
"difficulty": "2.04", "difficulty": "2.04",
"description": [ "description": [
@ -265,9 +265,9 @@
"id": "afd15382cdfb22c9efe8b7de", "id": "afd15382cdfb22c9efe8b7de",
"title": "DNA Pairing", "title": "DNA Pairing",
"tests": [ "tests": [
"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(\"ATCGA\"),[['A','T'],['T','A'],['C','G'],['G','C'],['A','T']], '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(\"TTGAG\"),[['T','A'],['T','A'],['G','C'],['A','T'],['G','C']], '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>.');" "assert.deepEqual(pair(\"CTCTA\"),[['C','G'],['T','A'],['C','G'],['T','A'],['A','T']], 'should return the dna pair');"
], ],
"difficulty": "2.05", "difficulty": "2.05",
"description": [ "description": [
@ -319,10 +319,10 @@
"fearNotLetter('abce');" "fearNotLetter('abce');"
], ],
"tests": [ "tests": [
"assert(fearNotLetter('abce') === 'd', '.');", "expect(fearNotLetter('abce')).to.equal('d');",
"assert(fearNotLetter('bcd')) === undefined, '.');", "expect(fearNotLetter('bcd')).to.be.undefined;",
"assert(fearNotLetter('abcdefghjklmno') === 'i', '.');", "expect(fearNotLetter('abcdefghjklmno')).to.equal('i');",
"assert(fearNotLetter('yz')) === undefined, '.');" "expect(fearNotLetter('yz')).to.be.undefined;"
], ],
"MDNlinks": [ "MDNlinks": [
"String.charCodeAt()", "String.charCodeAt()",
@ -359,13 +359,13 @@
"boo(null);" "boo(null);"
], ],
"tests": [ "tests": [
"assert.strictEqual(boo(true), true, '.');", "assert.strictEqual(boo(true), true);",
"assert.strictEqual(boo(false), true, '.');", "assert.strictEqual(boo(false), true);",
"assert.strictEqual(boo([1, 2, 3]), false, '.');", "assert.strictEqual(boo([1, 2, 3]), false);",
"assert.strictEqual(boo([].slice), false, '.');", "assert.strictEqual(boo([].slice), false);",
"assert.strictEqual(boo({ 'a': 1 }), false, '.');", "assert.strictEqual(boo({ 'a': 1 }), false);",
"assert.strictEqual(boo(1), false, '.');", "assert.strictEqual(boo(1), false);",
"assert.strictEqual(boo(NaN), false, '.');", "assert.strictEqual(boo(NaN), false);",
"assert.strictEqual(boo('a'), false);" "assert.strictEqual(boo('a'), false);"
], ],
"MDNlinks": [ "MDNlinks": [
@ -403,9 +403,9 @@
"unite([1, 3, 2], [5, 2, 1, 4], [2, 1]);" "unite([1, 3, 2], [5, 2, 1, 4], [2, 1]);"
], ],
"tests": [ "tests": [
"assert.deepEqual(unite([1, 3, 2], [5, 2, 1, 4], [2, 1]), [1, 3, 2, 5, 4], 'should return the union of the given arrays', '.');", "assert.deepEqual(unite([1, 3, 2], [5, 2, 1, 4], [2, 1]), [1, 3, 2, 5, 4], 'should return the union of the given arrays');",
"assert.deepEqual(unite([1, 3, 2], [1, [5]], [2, [4]]), [1, 3, 2, [5], [4]], 'should not flatten nested arrays', '.');", "assert.deepEqual(unite([1, 3, 2], [1, [5]], [2, [4]]), [1, 3, 2, [5], [4]], 'should not flatten nested arrays');",
"assert.deepEqual(unite([1, 2, 3], [5, 2, 1]), [1, 2, 3, 5], 'should correctly handle exactly two arguments', '.');", "assert.deepEqual(unite([1, 2, 3], [5, 2, 1]), [1, 2, 3, 5], 'should correctly handle exactly two arguments');",
"assert.deepEqual(unite([1, 2, 3], [5, 2, 1, 4], [2, 1], [6, 7, 8]), [ 1, 2, 3, 5, 4, 6, 7, 8 ], 'should correctly handle higher numbers of arguments');" "assert.deepEqual(unite([1, 2, 3], [5, 2, 1, 4], [2, 1], [6, 7, 8]), [ 1, 2, 3, 5, 4, 6, 7, 8 ], 'should correctly handle higher numbers of arguments');"
], ],
"MDNlinks": [ "MDNlinks": [
@ -442,12 +442,12 @@
"convert('Dolce & Gabbana');" "convert('Dolce & Gabbana');"
], ],
"tests": [ "tests": [
"assert.match(convert('Dolce & Gabbana'), /Dolce &(amp|AMP|#x00026|#38); Gabbana/, 'should escape characters', '.');", "assert.match(convert('Dolce & Gabbana'), /Dolce &(amp|AMP|#x00026|#38); Gabbana/, 'should escape characters');",
"assert.match(convert('Hamburgers < Pizza < Tacos'), /Hamburgers &(lt|LT|#x0003C|#60); Pizza &(lt|LT|#x0003C|#60); Tacos/, 'should escape characters', '.');", "assert.match(convert('Hamburgers < Pizza < Tacos'), /Hamburgers &(lt|LT|#x0003C|#60); Pizza &(lt|LT|#x0003C|#60); Tacos/, 'should escape characters');",
"assert.match(convert('Sixty > twelve'), /Sixty &(gt|GT|#x0003E|#62); twelve/, 'should escape characters', '.');", "assert.match(convert('Sixty > twelve'), /Sixty &(gt|GT|#x0003E|#62); twelve/, 'should escape characters');",
"assert.match(convert('Stuff in \"quotation marks\"'), /Stuff in &(quot|QUOT|#x00022|#34);quotation marks&(quot|QUOT|#x00022|#34);/, 'should escape characters', '.');", "assert.match(convert('Stuff in \"quotation marks\"'), /Stuff in &(quot|QUOT|#x00022|#34);quotation marks&(quot|QUOT|#x00022|#34);/, 'should escape characters');",
"assert.match(convert(\"Shindler's List\"), /Shindler&(apos|#x00027|#39);s List/, 'should escape characters', '.');", "assert.match(convert(\"Shindler's List\"), /Shindler&(apos|#x00027|#39);s List/, 'should escape characters');",
"assert.match(convert('<>'), /&(lt|LT|#x0003C|#60);&(gt|GT|#x0003E|#62);/, 'should escape characters', '.');", "assert.match(convert('<>'), /&(lt|LT|#x0003C|#60);&(gt|GT|#x0003E|#62);/, 'should escape characters');",
"assert.strictEqual(convert('abc'), 'abc', 'should handle strings with nothing to escape');" "assert.strictEqual(convert('abc'), 'abc', 'should handle strings with nothing to escape');"
], ],
"MDNlinks": [ "MDNlinks": [
@ -485,9 +485,9 @@
"spinalCase('This Is Spinal Tap');" "spinalCase('This Is Spinal Tap');"
], ],
"tests": [ "tests": [
"assert.strictEqual(spinalCase('This Is Spinal Tap'), 'this-is-spinal-tap', 'should return spinal case from string with spaces', '.');", "assert.strictEqual(spinalCase('This Is Spinal Tap'), 'this-is-spinal-tap', 'should return spinal case from string with spaces');",
"assert.strictEqual(spinalCase('thisIsSpinalTap'), 'this-is-spinal-tap', 'should return spinal case from string with camel case', '.');", "assert.strictEqual(spinalCase('thisIsSpinalTap'), 'this-is-spinal-tap', 'should return spinal case from string with camel case');",
"assert.strictEqual(spinalCase('The_Andy_Griffith_Show'), 'the-andy-griffith-show', 'should return spinal case from string with snake case', '.');", "assert.strictEqual(spinalCase('The_Andy_Griffith_Show'), 'the-andy-griffith-show', 'should return spinal case from string with snake case');",
"assert.strictEqual(spinalCase('Teletubbies say Eh-oh'), 'teletubbies-say-eh-oh', 'should return spinal case from string with spaces and hyphens');" "assert.strictEqual(spinalCase('Teletubbies say Eh-oh'), 'teletubbies-say-eh-oh', 'should return spinal case from string with spaces and hyphens');"
], ],
"MDNlinks": [ "MDNlinks": [
@ -525,12 +525,12 @@
"sumFibs(4);" "sumFibs(4);"
], ],
"tests": [ "tests": [
"assert(sumFibs(1)).to.be.a('number', '.');", "expect(sumFibs(1)).to.be.a('number');",
"assert(sumFibs(1000) === 1785, '.');", "expect(sumFibs(1000)).to.equal(1785);",
"assert(sumFibs(4000000) === 4613732, '.');", "expect(sumFibs(4000000)).to.equal(4613732);",
"assert(sumFibs(4) === 5, '.');", "expect(sumFibs(4)).to.equal(5);",
"assert(sumFibs(75024) === 60696, '.');", "expect(sumFibs(75024)).to.equal(60696);",
"assert(sumFibs(75025) === 135721);" "expect(sumFibs(75025)).to.equal(135721);"
], ],
"MDNlinks": [ "MDNlinks": [
"Remainder" "Remainder"
@ -566,9 +566,9 @@
"sumPrimes(10);" "sumPrimes(10);"
], ],
"tests": [ "tests": [
"assert(sumPrimes(10)).to.be.a('number', '.');", "expect(sumPrimes(10)).to.be.a('number');",
"assert(sumPrimes(10) === 17, '.');", "expect(sumPrimes(10)).to.equal(17);",
"assert(sumPrimes(977) === 73156);" "expect(sumPrimes(977)).to.equal(73156);"
], ],
"MDNlinks": [ "MDNlinks": [
"For Loops", "For Loops",
@ -606,10 +606,10 @@
"smallestCommons([1,5]);" "smallestCommons([1,5]);"
], ],
"tests": [ "tests": [
"assert(smallestCommons([1,5])).to.be.a('number', '.');", "expect(smallestCommons([1,5])).to.be.a('number');",
"assert(smallestCommons([1,5]) === 60, '.');", "expect(smallestCommons([1,5])).to.equal(60);",
"assert(smallestCommons([5,1]) === 60, '.');", "expect(smallestCommons([5,1])).to.equal(60);",
"assert(smallestCommons([1,13]) === 360360);" "expect(smallestCommons([1,13])).to.equal(360360);"
], ],
"MDNlinks": [ "MDNlinks": [
"Smallest Common Multiple" "Smallest Common Multiple"
@ -644,7 +644,7 @@
"find([1, 2, 3, 4], function(num){ return num % 2 === 0; });" "find([1, 2, 3, 4], function(num){ return num % 2 === 0; });"
], ],
"tests": [ "tests": [
"assert.strictEqual(find([1, 3, 5, 8, 9, 10], function(num) { return num % 2 === 0; }), 8, 'should return first found value', '.');", "assert.strictEqual(find([1, 3, 5, 8, 9, 10], function(num) { return num % 2 === 0; }), 8, 'should return first found value');",
"assert.strictEqual(find([1, 3, 5, 9], function(num) { return num % 2 === 0; }), undefined, 'should return undefined if not found');" "assert.strictEqual(find([1, 3, 5, 9], function(num) { return num % 2 === 0; }), undefined, 'should return undefined if not found');"
], ],
"MDNlinks": [ "MDNlinks": [
@ -719,9 +719,9 @@
"steamroller([1, [2], [3, [[4]]]]);" "steamroller([1, [2], [3, [[4]]]]);"
], ],
"tests": [ "tests": [
"assert.deepEqual(steamroller([[['a']], [['b']]]), ['a', 'b'], 'should flatten nested arrays', '.');", "assert.deepEqual(steamroller([[['a']], [['b']]]), ['a', 'b'], 'should flatten nested arrays');",
"assert.deepEqual(steamroller([1, [2], [3, [[4]]]]), [1, 2, 3, 4], 'should flatten nested arrays', '.');", "assert.deepEqual(steamroller([1, [2], [3, [[4]]]]), [1, 2, 3, 4], 'should flatten nested arrays');",
"assert.deepEqual(steamroller([1, [], [3, [[4]]]]), [1, 3, 4], 'should work with empty arrays', '.');", "assert.deepEqual(steamroller([1, [], [3, [[4]]]]), [1, 3, 4], 'should work with empty arrays');",
"assert.deepEqual(steamroller([1, {}, [3, [[4]]]]), [1, {}, 3, 4], 'should work with actual objects');" "assert.deepEqual(steamroller([1, {}, [3, [[4]]]]), [1, {}, 3, 4], 'should work with actual objects');"
], ],
"MDNlinks": [ "MDNlinks": [
@ -757,8 +757,8 @@
"binaryAgent('01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111');" "binaryAgent('01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111');"
], ],
"tests": [ "tests": [
"assert(binaryAgent('01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111') === \"Aren't bonfires fun!?\", '.');", "expect(binaryAgent('01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111')).to.equal(\"Aren't bonfires fun!?\");",
"assert(binaryAgent('01001001 00100000 01101100 01101111 01110110 01100101 00100000 01000110 01110010 01100101 01100101 01000011 01101111 01100100 01100101 01000011 01100001 01101101 01110000 00100001') === \"I love FreeCodeCamp!\");" "expect(binaryAgent('01001001 00100000 01101100 01101111 01110110 01100101 00100000 01000110 01110010 01100101 01100101 01000011 01101111 01100100 01100101 01000011 01100001 01101101 01110000 00100001')).to.equal(\"I love FreeCodeCamp!\");"
], ],
"MDNlinks": [ "MDNlinks": [
"String.charCodeAt()", "String.charCodeAt()",
@ -796,8 +796,8 @@
"every([{'user': 'Tinky-Winky', 'sex': 'male'}, {'user': 'Dipsy', 'sex': 'male'}, {'user': 'Laa-Laa', 'sex': 'female'}, {'user': 'Po', 'sex': 'female'}], 'sex');" "every([{'user': 'Tinky-Winky', 'sex': 'male'}, {'user': 'Dipsy', 'sex': 'male'}, {'user': 'Laa-Laa', 'sex': 'female'}, {'user': 'Po', 'sex': 'female'}], 'sex');"
], ],
"tests": [ "tests": [
"assert.strictEqual(every([{'user': 'Tinky-Winky', 'sex': 'male'}, {'user': 'Dipsy', 'sex': 'male'}, {'user': 'Laa-Laa', 'sex': 'female'}, {'user': 'Po', 'sex': 'female'}], 'sex'), true, 'should return true if predicate returns truthy for all elements in the collection', '.');", "assert.strictEqual(every([{'user': 'Tinky-Winky', 'sex': 'male'}, {'user': 'Dipsy', 'sex': 'male'}, {'user': 'Laa-Laa', 'sex': 'female'}, {'user': 'Po', 'sex': 'female'}], 'sex'), true, 'should return true if predicate returns truthy for all elements in the collection');",
"assert.strictEqual(every([{'user': 'Tinky-Winky', 'sex': 'male'}, {'user': 'Dipsy', 'sex': 'male'}, {'user': 'Laa-Laa', 'sex': 'female'}, {'user': 'Po', 'sex': 'female'}], {'sex': 'female'}), false, 'should return false if predicate returns falsey for any element in the collection', '.');", "assert.strictEqual(every([{'user': 'Tinky-Winky', 'sex': 'male'}, {'user': 'Dipsy', 'sex': 'male'}, {'user': 'Laa-Laa', 'sex': 'female'}, {'user': 'Po', 'sex': 'female'}], {'sex': 'female'}), false, 'should return false if predicate returns falsey for any element in the collection');",
"assert.strictEqual(every([{'user': 'Tinky-Winky', 'sex': 'female'}, {'user': 'Dipsy', 'sex': 'male'}, {'user': 'Laa-Laa', 'sex': 'female'}, {'user': 'Po', 'sex': 'female'}], {'sex': 'female'}), false, 'should return false if predicate returns falsey for any element in the collection');" "assert.strictEqual(every([{'user': 'Tinky-Winky', 'sex': 'female'}, {'user': 'Dipsy', 'sex': 'male'}, {'user': 'Laa-Laa', 'sex': 'female'}, {'user': 'Po', 'sex': 'female'}], {'sex': 'female'}), false, 'should return false if predicate returns falsey for any element in the collection');"
], ],
"MDNlinks": [ "MDNlinks": [
@ -835,11 +835,11 @@
"add(2,3);" "add(2,3);"
], ],
"tests": [ "tests": [
"assert(add(2, 3) === 5, '.');", "expect(add(2, 3)).to.equal(5);",
"assert(add(2)(3) === 5, '.');", "expect(add(2)(3)).to.equal(5);",
"assert(add('http://bit.ly/IqT6zt')).to.be.undefined;", "expect(add('http://bit.ly/IqT6zt')).to.be.undefined;",
"assert(add(2, '3')).to.be.undefined;", "expect(add(2, '3')).to.be.undefined;",
"assert(add(2)([3])).to.be.undefined;" "expect(add(2)([3])).to.be.undefined;"
], ],
"MDNlinks": [ "MDNlinks": [
"Global Function Object", "Global Function Object",