Fix test on Waypoint: Concatenating Strings with Plus Operator

Second test case now allows for either single or double quotes. Test uses verbose regex to help eliminate edge cases. closes #5583
This commit is contained in:
Robert Richey
2015-12-31 07:37:58 -07:00
parent 3c3e2b6c6c
commit a9b694a927

View File

@ -970,7 +970,7 @@
],
"tests": [
"assert(myStr === \"This is the start. This is the end.\", 'message: <code>myStr</code> should have a value of <code>This is the start. This is the end.</code>');",
"assert(code.match(/\"\\s*\\+\\s*\"/g).length > 1, 'message: Use the <code>+</code> operator to build <code>myStr</code>');"
"assert(code.match(/This is the start\\.\\s*[\"']\\s*(.)\\s*[\"']This is the end\\.[\"'];\\s*$/)[1] === \"+\", 'message: Use the <code>+</code> operator to build <code>myStr</code>');"
],
"type": "waypoint",
"challengeType": "1",