Commit 557cdb78 authored by Phil Booth's avatar Phil Booth

chore(tests): add unit test of Array.prototype.slice

parent b3b34597
...@@ -274,6 +274,10 @@ suite('instantiate and overflow, size=3:', () => { ...@@ -274,6 +274,10 @@ suite('instantiate and overflow, size=3:', () => {
assert.equal(hoopy[1], hoopy[4]) assert.equal(hoopy[1], hoopy[4])
}) })
test('slice works correctly', () => {
assert.equal(hoopy.slice(0, 3)[2], hoopy[2])
})
suite('grow, by=1:', () => { suite('grow, by=1:', () => {
setup(() => { setup(() => {
hoopy.grow(1) hoopy.grow(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment