Skip to content

Commit

Permalink
chose(test): add the buggy test case from the reporting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xt-riot committed Jan 20, 2025
1 parent 512d784 commit c286cde
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/inlineBrackets.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ var subarg = require('..');
var test = require('tape');

test('inline brackets', function (t) {
t.plan(6);
t.plan(7);

t.deepEqual(
subarg('http://localhost\?q=\[1\]'.split(/\s+/)),
{
_: [ 'http://localhost?q=[1]' ]
}
)

t.deepEqual(
subarg('beep -t [ boop -o a.txt -u http://localhost -u http://localhost\?q=\[1\] -q]'.split(/\s+/)),
{
Expand Down

0 comments on commit c286cde

Please sign in to comment.