Skip to content

Commit 9f3caa3

Browse files
committed
[Tests] increase coverage
1 parent 3344a04 commit 9f3caa3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/parse.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,11 @@ test('parse shell commands', function (t) {
4040

4141
t.deepEqual(parse('-x "" -y'), ['-x', '', '-y'], 'empty string is preserved');
4242

43+
t.same(
44+
parse('2;b', {}, { escape: 'd' }),
45+
[{ op: '2;b' }],
46+
'control char in unquoted context mid-token with regex-special escape returns op'
47+
);
48+
4349
t.end();
4450
});

0 commit comments

Comments
 (0)