@@ -50,7 +50,7 @@ test('inline brackets', function (t) {
5050 )
5151
5252 t . deepEqual (
53- subarg ( 'beep -t [boop -o a.txt -u http://localhost\?q=\[1\] -u http://localhost]' . split ( / \s + / ) ) ,
53+ subarg ( 'beep -t [boop -o a.txt -u http://localhost\?q=\[1\] -u http://localhost ]' . split ( / \s + / ) ) ,
5454 {
5555 _ : [ 'beep' ] ,
5656 t : {
@@ -89,7 +89,7 @@ test('inline brackets', function (t) {
8989 )
9090} ) ;
9191
92- test . skip ( 'doesnt work' , function ( t ) {
92+ test ( 'doesnt work' , function ( t ) {
9393 t . plan ( 2 ) ;
9494 /*
9595 * expected:
@@ -111,11 +111,12 @@ test.skip('doesnt work', function (t) {
111111 )
112112
113113 t . deepEqual (
114- subarg ( 'beep -t [ boop -o a.txt -u [be[ep] ]' . split ( / \s + / ) ) ,
114+ subarg ( 'beep -t [ boop -o a.txt -u [ be[ep] ] ]' . split ( / \s + / ) ) ,
115115 {
116- /*
116+ /* Same as above - note the context-closing bracket is right next to an inline closing bracket
117+ * If you add a space, it works
117118 * expected:
118- * { _: [ 'beep' ], t: { _: [ 'boop' ], o: 'a.txt', u: { _: [ 'beep ' ] } } }
119+ * { _: [ 'beep' ], t: { _: [ 'boop' ], o: 'a.txt', u: { _: [ 'be[ep] ' ] } } }
119120 * actual:
120121 * { _: [ 'beep' ], t: true }
121122 */
@@ -124,7 +125,7 @@ test.skip('doesnt work', function (t) {
124125 _ : [ 'boop' ] ,
125126 o : 'a.txt' ,
126127 u : {
127- _ : [ 'beep ' ]
128+ _ : [ 'be[ep] ' ]
128129 }
129130 }
130131 }
0 commit comments