From df7e4c7449c3fe1e8960dd345e1a9fd02cad7e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Fri, 30 Aug 2019 20:07:36 +0200 Subject: [PATCH] add test for #37 --- test/quote.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/quote.js b/test/quote.js index 9d9aacd..7c31f01 100644 --- a/test/quote.js +++ b/test/quote.js @@ -20,6 +20,7 @@ test('quote', function (t) { t.equal(quote(['><;{}']), '\\>\\<\\;\\{\\}'); t.equal(quote([ 'a', 1, true, false ]), 'a 1 true false'); t.equal(quote([ 'a', 1, null, undefined ]), 'a 1 null undefined'); + t.equal(quote([ 'a\\x' ]), 'a\\\\x'); t.end(); });