mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
373 B
11 lines
373 B
15 years ago
|
process.mixin(require("./common"));
|
||
|
|
||
|
assertEquals(14, process._byteLength("Il était tué"));
|
||
|
assertEquals(14, process._byteLength("Il était tué", "utf8"));
|
||
|
|
||
|
assertEquals(12, process._byteLength("Il était tué", "ascii"));
|
||
|
|
||
|
assertEquals(12, process._byteLength("Il était tué", "binary"));
|
||
|
|
||
|
assertThrows('process._byteLength()');
|
||
|
assertThrows('process._byteLength(5)');
|