Skip to content

Commit

Permalink
test: remove duplicate tests
Browse files Browse the repository at this point in the history
Signed-off-by: Trevor Norris <[email protected]>
  • Loading branch information
michaelkebe authored and trevnorris committed Jun 5, 2014
1 parent 8ae32a9 commit 2f86275
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/simple/test-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,25 +685,6 @@ assert.equal(0xad, b[1]);
assert.equal(0xbe, b[2]);
assert.equal(0xef, b[3]);

// testing invalid encoding on Buffer.toString
caught_error = null;
try {
var copied = b.toString('invalid');
} catch (err) {
caught_error = err;
}
assert.strictEqual('Unknown encoding: invalid', caught_error.message);

// testing invalid encoding on Buffer.write
caught_error = null;
try {
var copied = b.write('some string', 0, 5, 'invalid');
} catch (err) {
caught_error = err;
}
assert.strictEqual('Unknown encoding: invalid', caught_error.message);


// #1210 Test UTF-8 string includes null character
var buf = new Buffer('\0');
assert.equal(buf.length, 1);
Expand Down

0 comments on commit 2f86275

Please sign in to comment.