mirror of https://github.com/lukechilds/node.git
Felix Geisendörfer
15 years ago
committed by
Ryan Dahl
2 changed files with 24 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
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)'); |
Loading…
Reference in new issue