Merge pull request #5771 from patsul12/fix/tests-for-subtract-one-waypoint

Add test to subtract one waypoint
pull/5793/head
Logan Tegman 2016-01-02 15:30:17 -08:00
commit 80fa1a3c91
1 changed files with 2 additions and 1 deletions

View File

@ -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"