Incorrect JSON caused error during seed

This commit is contained in:
ahstro
2015-08-10 20:08:14 +02:00
parent 7dc6b4de86
commit ce6f0b4a61
2 changed files with 11 additions and 11 deletions

View File

@ -65,14 +65,14 @@
},
{
"id": "a3f503de51cf954ede28891d",
"name": "Bonfire: Symmetric Difference",
"dashedName": "bonfire-symmetric-difference",
"title": "Symmetric Difference",
"difficulty": "4.02",
"description": [
"Create a function that takes two or more arrays and returns an array of the symmetric difference of the provided arrays.",
"The mathematical term symmetric difference refers to the elements in two sets that are in either the first or second set, but not in both.",
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
],
"type": "bonfire",
"challengeSeed": [
"function sym(args) {",
" return arguments;",
@ -104,8 +104,7 @@
},
{
"id": "aa2e6f85cab2ab736c9a9b24",
"name": "Bonfire: Exact Change",
"dashedName": "bonfire-exact-change",
"title": "Exact Change",
"difficulty": "4.03",
"description": [
"Design a cash register drawer function that accepts purchase price as the first argument, payment as the second argument, and cash-in-drawer (cid) as the third argument.",
@ -114,6 +113,7 @@
"Otherwise, return change in coin and bills, sorted in highest to lowest order.",
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
],
"type": "bonfire",
"challengeSeed": [
"function drawer(price, cash, cid) {",
" var change;",
@ -160,13 +160,13 @@
},
{
"id": "a56138aff60341a09ed6c480",
"name": "Bonfire: Inventory Update",
"dashedName": "bonfire-inventory-update",
"title": "Inventory Update",
"difficulty": "4.04",
"description": [
"Compare and update inventory stored in a 2d array against a second 2d array of a fresh delivery. Update current inventory item quantity, and if an item cannot be found, add the new item and quantity into the inventory array in alphabetical order.",
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
],
"type": "bonfire",
"challengeSeed": [
"function inventory(arr1, arr2) {",
" // All inventory must be accounted for or you're fired!",

View File

@ -4,8 +4,7 @@
"challenges": [
{
"id": "a2f1d72d9b908d0bd72bb9f6",
"name": "Bonfire: Make a Person",
"dashedName": "bonfire-make-a-person",
"title": "Make a Person",
"difficulty": "3.01",
"description": [
"Fill in the object constructor with the methods specified in the tests.",
@ -14,6 +13,7 @@
"These methods must be the only available means for interacting with the object.",
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
],
"type": "bonfire",
"challengeSeed": [
"var Person = function(firstAndLast) {",
" return firstAndLast;",
@ -56,7 +56,7 @@
},
{
"id": "af4afb223120f7348cdfc9fd",
"name": "Bonfire: Map the Debris",
"title": "Bonfire: Map the Debris",
"dashedName": "bonfire-map-the-debris",
"difficulty": "3.02",
"description": [
@ -97,8 +97,7 @@
},
{
"id": "a3f503de51cfab748ff001aa",
"name": "Bonfire: Pairwise",
"dashedName": "bonfire-pairwise",
"title": "Pairwise",
"difficulty": "3.03",
"description": [
"Return the sum of all indices of elements of 'arr' that can be paired with one other element to form a sum that equals the value in the second argument 'arg'. If multiple sums are possible, return the smallest sum. Once an element has been used, it cannot be reused to pair with another.",
@ -106,6 +105,7 @@
"pairwise([1, 3, 2, 4], 4) would only equal 1, because only the first two elements can be paired to equal 4, and the first element has an index of 0!",
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
],
"type": "bonfire",
"challengeSeed": [
"function pairwise(arr, arg) {",
" return arg;",