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

Fixed increment and decrement issue
pull/8592/head
Mrugesh Mohapatra 2016-05-13 01:43:13 +05:30
commit 19b4410fb2
1 changed files with 2 additions and 2 deletions

View File

@ -453,7 +453,7 @@
"tests": [
"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*[+]{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');"
],
"type": "waypoint",
@ -497,7 +497,7 @@
],
"tests": [
"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');"
],
"type": "waypoint",