From 1743d7d4bd869035e073fe48af27241668873f4f Mon Sep 17 00:00:00 2001 From: Jesse Tane Date: Sun, 16 Aug 2015 18:33:13 -0400 Subject: [PATCH] add failing test for replacing the utf8 replacement char --- test/to-string.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/to-string.js b/test/to-string.js index 8fd9db1..0992298 100644 --- a/test/to-string.js +++ b/test/to-string.js @@ -223,3 +223,11 @@ test('utf8 replacement chars for anything in the surrogate pair range', function ) t.end() }) + +test('utf8 don\'t replace the replacement char', function (t) { + t.equal( + new B('\uFFFD').toString(), + '\uFFFD' + ) + t.end() +}) -- 2.34.1