mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
failing test for 'clear'
This commit is contained in:
parent
6f37062a11
commit
905207dff8
@ -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(), []);
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user