Merge pull request #5771 from patsul12/fix/tests-for-subtract-one-waypoint
Add test to subtract one waypointpull/5793/head
commit
80fa1a3c91
|
@ -316,7 +316,8 @@
|
|||
],
|
||||
"tests": [
|
||||
"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",
|
||||
"challengeType": "1"
|
||||
|
|
Loading…
Reference in New Issue