following along part 3

This commit is contained in:
Pablo Martin 2025-05-29 19:41:40 +02:00
parent 2e3dfd4114
commit ade19f00bc
602 changed files with 67987 additions and 0 deletions

View file

@ -0,0 +1,12 @@
var test = require('tape');
var inspect = require('../');
var obj = { x: 'a\r\nb', y: '\x05! \x1f \x12' };
test('interpolate low bytes', function (t) {
t.plan(1);
t.equal(
inspect(obj),
"{ x: 'a\\r\\nb', y: '\\x05! \\x1F \\x12' }"
);
});