Skip to content

Commit

Permalink
lowbyte test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Mar 22, 2014
1 parent 15ab8ae commit 4a2b0e1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/lowbyte.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var test = require('tape');
var inspect = require('../');

var obj = { x: 'a\r\nb', y: '\5! \x1f \022' };

test('interpolate low bytes', function (t) {
t.plan(1);
t.equal(
inspect(obj),
"{ x: 'a\\r\\nb', y: '\\x05! \\x1f \\x12' }"
);
});

0 comments on commit 4a2b0e1

Please sign in to comment.