From 7c91fc234e287ee9f133500d5d52b6802f6a71e2 Mon Sep 17 00:00:00 2001 From: "[1000i100] Millicent Billette" <git@1000i100.fr> Date: Sun, 28 Mar 2021 12:11:59 +0200 Subject: [PATCH] 100% coverage on dictionary-builder --- src/dictionary-builder.test.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dictionary-builder.test.mjs b/src/dictionary-builder.test.mjs index c969938..7b798f5 100644 --- a/src/dictionary-builder.test.mjs +++ b/src/dictionary-builder.test.mjs @@ -63,3 +63,6 @@ test('regLikeVariants handle plop:\\:', t => { test('regLikeVariants handle [\\]*]', t => { t.deepEqual(app.regLikeVariants('[\\]*]'), [']', '*']); }); +test('regLikeVariants handle escaping common chr \\a', t => { + t.deepEqual(app.regLikeVariants('\\a'), ['a']); +}); -- GitLab