Fix Concatenating Strings with Plus Operator test

This commit is contained in:
Abhisek Pattnaik
2016-01-03 02:08:09 +05:30
parent 52b0eb87e7
commit f22cb15306

View File

@ -987,7 +987,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(/This is the start\\.\\s*[\"']\\s*(.)\\s*[\"']This is the end\\.[\"'];\\s*$/)[1] === \"+\", 'message: Use the <code>+</code> operator to build <code>myStr</code>');"
"assert(/var\\s+myStr\\s*=\\s*([\"'])This is the start\\. \\1\\s*\\+\\s*([\"'])This is the end\\.\\2/.test(code), 'message: Use the <code>+</code> operator to build <code>myStr</code>');"
],
"type": "waypoint",
"challengeType": "1",