lowbyte.js 268 B

123456789101112
  1. var test = require('tape');
  2. var inspect = require('../');
  3. var obj = { x: 'a\r\nb', y: '\x05! \x1f \x12' };
  4. test('interpolate low bytes', function (t) {
  5. t.plan(1);
  6. t.equal(
  7. inspect(obj),
  8. "{ x: 'a\\r\\nb', y: '\\x05! \\x1F \\x12' }"
  9. );
  10. });