Merge pull request #5771 from patsul12/fix/tests-for-subtract-one-waypoint
Add test to subtract one waypoint
This commit is contained in:
@ -316,7 +316,8 @@
|
|||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
"assert(difference === 12, 'message: Make the variable <code>difference</code> equal 12.');",
|
"assert(difference === 12, 'message: Make the variable <code>difference</code> equal 12.');",
|
||||||
"assert(/\\d+\\s*-\\s*\\d+/.test(code),'message: User the <code>-</code> operator');"
|
"assert((code).match(/difference/g).length === 1,'message: Only change the first line');",
|
||||||
|
"assert(/\\d+\\s*-\\s*\\d+/.test(code),'message: Use the <code>-</code> operator');"
|
||||||
],
|
],
|
||||||
"type": "waypoint",
|
"type": "waypoint",
|
||||||
"challengeType": "1"
|
"challengeType": "1"
|
||||||
|
Reference in New Issue
Block a user