Added Additional Test to Increment a Number

Added an additional test to check that myVar = myVar is not still
present. Tested locally.
This commit is contained in:
Joseph Morse
2016-04-03 11:49:23 -04:00
parent 69c8539679
commit 5cbf53573a

View File

@ -443,6 +443,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(/var myVar = 87;/.test(code), 'message: Do not change code above the line');"
],