failing test for 'clear'

This commit is contained in:
brianc 2011-01-01 11:32:59 -06:00
parent 6f37062a11
commit 905207dff8

View File

@ -108,3 +108,11 @@ test('can add arbitrary buffer to the end', function() {
var result = subject.add(Buffer("!!!")).join();
assert.equalBuffers(result, [33, 33, 33, 0, 33, 33, 33]);
})
test('clearing', function() {
var subject = new Writer();
subject.addCString("@!!#!#");
subject.addInt32(10401);
subject.clear();
assert.equalBuffers(subject.join(), []);
})