Merge pull request #8585 from pranayberry/fix/increment-decrement-issue

Fixed increment and decrement issue
This commit is contained in:
Mrugesh Mohapatra
2016-05-13 01:43:13 +05:30

View File

@ -453,7 +453,7 @@
"tests": [ "tests": [
"assert(myVar === 88, 'message: <code>myVar</code> should equal <code>88</code>');", "assert(myVar === 88, 'message: <code>myVar</code> should equal <code>88</code>');",
"assert(/myVar\\s*\\=.*myVar/.test(code) === false, 'message: <code>myVar = myVar</code> should be changed');", "assert(/myVar\\s*\\=.*myVar/.test(code) === false, 'message: <code>myVar = myVar</code> should be changed');",
"assert(/myVar\\s*[+]{2}/.test(code), 'message: Use the <code>++</code> operator');", "assert(/[+]{2}\\s*myVar|myVar\\s*[+]{2}/.test(code), 'message: Use the <code>++</code> operator');",
"assert(/var myVar = 87;/.test(code), 'message: Do not change code above the line');" "assert(/var myVar = 87;/.test(code), 'message: Do not change code above the line');"
], ],
"type": "waypoint", "type": "waypoint",
@ -497,7 +497,7 @@
], ],
"tests": [ "tests": [
"assert(myVar === 10, 'message: <code>myVar</code> should equal <code>10</code>');", "assert(myVar === 10, 'message: <code>myVar</code> should equal <code>10</code>');",
"assert(/myVar\\s*[-]{2}/.test(code), 'message: Use the <code>--</code> operator on <code>myVar</code>');", "assert(/[-]{2}\\s*myVar|myVar\\s*[-]{2}/.test(code), 'message: Use the <code>--</code> operator on <code>myVar</code>');",
"assert(/var myVar = 11;/.test(code), 'message: Do not change code above the line');" "assert(/var myVar = 11;/.test(code), 'message: Do not change code above the line');"
], ],
"type": "waypoint", "type": "waypoint",