Sign in
cobalt
/
cobalt
/
6f3fc44129ff775165447b31ee68e7cc0ca9dedd
/
.
/
src
/
third_party
/
devtools
/
node_modules
/
object-inspect
/
test
/
lowbyte.js
blob: debd59cb7bfe1a90af1f67e90eaf17468acccb47 [
file
] [
log
] [
blame
]
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' }"
);
});