Added test: solution uses push for an array

This commit is contained in:
Pranay Kumar 2016-10-27 15:25:40 -07:00 committed by Stuart Taylor
parent 66b1f7a048
commit 2f34ffa88f

View File

@ -5202,6 +5202,7 @@
],
"tests": [
"assert(code.match(/for\\s*\\(/g).length > 1, 'message: You should be using a <code>for</code> loop for this.');",
"assert(code.match(/myArray.push/), 'message: You should be using the array method <code>push</code>.');",
"assert.deepEqual(myArray, [9,7,5,3,1], 'message: <code>myArray</code> should equal <code>[9,7,5,3,1]</code>.');"
],
"type": "waypoint",