mirror of https://github.com/lukechilds/node.git
Ryan Dahl
14 years ago
4 changed files with 6 additions and 28 deletions
@ -1,16 +0,0 @@ |
|||
common = require("../common"); |
|||
assert = common.assert |
|||
|
|||
assert.equal(14, process._byteLength("Il était tué")); |
|||
assert.equal(14, process._byteLength("Il était tué", "utf8")); |
|||
|
|||
assert.equal(12, process._byteLength("Il était tué", "ascii")); |
|||
|
|||
assert.equal(12, process._byteLength("Il était tué", "binary")); |
|||
|
|||
assert.throws(function() { |
|||
process._byteLength(); |
|||
}); |
|||
assert.throws(function() { |
|||
process._byteLength(5); |
|||
}); |
Loading…
Reference in new issue