Added test: solution uses push for an array
This commit is contained in:
parent
66b1f7a048
commit
2f34ffa88f
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user