MCPcopy Index your code
hub / github.com/unconed/TermKit / testBinary

Function testBinary

Node/test.js:565–568  ·  view source on GitHub ↗

* Test binary handling.

(assert)

Source from the content-addressed store, hash-verified

563 * Test binary handling.
564 */
565function testBinary(assert) {
566 test = misc.escapeBinary("\u0000\u0001\u0002\u0003 xxx \r\n \u1fff \ufffd");
567 assert(test == "\\u0000\\u0001\\u0002\\u0003 xxx \r\n \u1fff \ufffd", "Binary escaping");
568}
569
570/**
571 * Test filereader.

Callers

nothing calls this directly

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected