Skip to content

Commit 967d85b

Browse files
committed
Add pop tests
1 parent 5ea1ab9 commit 967d85b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/mutator/pop-test.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@ suite.addBatch({
2929
tmp.pop();
3030
assert.equal(tmp.end, 1);
3131
assert.equal(tmp.length, 2);
32-
}
32+
},
33+
'over pop': function(CBuffer) {
34+
var tmp = CBuffer(5);
35+
tmp.push(4, 5, 6, 7, 8, 9, 10);
36+
assert.equal(tmp.pop(), 10);
37+
assert.equal(tmp.end, 0);
38+
assert.equal(tmp.start, 2);
39+
assert.equal(tmp.length, 4);
40+
},
3341
}
3442
});
3543

0 commit comments

Comments
 (0)