diff --git a/seed/challenges/basic-javascript.json b/seed/challenges/basic-javascript.json index 79d1ff0943..6502533de5 100644 --- a/seed/challenges/basic-javascript.json +++ b/seed/challenges/basic-javascript.json @@ -1501,11 +1501,11 @@ "We can do this by replacing the . part of our regular expression with the word and." ], "tests": [ - "assert(test==2, 'message: Your regular expression should find two occurrences of the word and.');", + "assert(myTest==2, 'message: Your regular expression should find two occurrences of the word and.');", "assert(editor.getValue().match(/\\/and\\/gi/), 'message: Use regular expressions to find the word and in testString.');" ], "challengeSeed": [ - "var test = (function() {", + "var myTest = (function() {", " var testString = \"Ada Lovelace and Charles Babbage designed the first computer and the software that would have run on it.\";", " var expressionToGetSoftware = /software/gi;", "", @@ -1516,7 +1516,7 @@ " // Only change code above this line.", "", " return testString.match(expression).length;", - "})();(function(){return test;})();" + "})();(function(){return myTest;})();" ], "type": "waypoint", "challengeType": 1, @@ -1545,10 +1545,10 @@ ], "tests": [ "assert(editor.getValue().match(/\\/\\\\d\\+\\//g), 'message: Use the /\\d+/g regular expression to find the numbers in testString.');", - "assert(test === 2, 'message: Your regular expression should find two numbers in testString.');" + "assert(myTest === 2, 'message: Your regular expression should find two numbers in testString.');" ], "challengeSeed": [ - "var test = (function() {", + "var myTest = (function() {", "", " var testString = \"There are 3 cats but 4 dogs.\";", "", @@ -1560,7 +1560,7 @@ "", " return testString.match(expression).length;", "", - "})();(function(){return test;})();" + "})();(function(){return myTest;})();" ], "type": "waypoint", "challengeType": 1, @@ -1585,10 +1585,10 @@ ], "tests": [ "assert(editor.getValue().match(/\\/\\\\s\\+\\//g), 'message: Use the /\\s+/g regular expression to find the spaces in testString.');", - "assert(test === 7, 'message: Your regular expression should find seven spaces in testString.');" + "assert(myTest === 7, 'message: Your regular expression should find seven spaces in testString.');" ], "challengeSeed": [ - "var test = (function(){", + "var myTest = (function(){", " var testString = \"How many spaces are there in this sentence?\";", "", " // Only change code below this line.", @@ -1599,7 +1599,7 @@ "", " return testString.match(expression).length;", "", - "})();(function(){return test;})();" + "})();(function(){return myTest;})();" ], "type": "waypoint", "challengeType": 1, @@ -1622,10 +1622,10 @@ ], "tests": [ "assert(editor.getValue().match(/\\/\\\\S\\/g/g), 'message: Use the /\\S/g regular expression to find non-space characters in testString.');", - "assert(test === 49, 'message: Your regular expression should find forty nine non-space characters in the testString.');" + "assert(myTest === 49, 'message: Your regular expression should find forty nine non-space characters in the testString.');" ], "challengeSeed": [ - "var test = (function(){", + "var myTest = (function(){", " var testString = \"How many non-space characters are there in this sentence?\";", "", " // Only change code below this line.", @@ -1635,7 +1635,7 @@ " // Only change code above this line.", "", " return testString.match(expression).length;", - "})();(function(){return test;})();" + "})();(function(){return myTest;})();" ], "type": "waypoint", "challengeType": 1,