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.

12 lines
268 B

4 years ago
  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. });