@@ -197,7 +197,7 @@ public void ParseInnerQuotedStrings()
197
197
[ Fact ]
198
198
public void ParseLongAndShortMix ( )
199
199
{
200
- Dictionary < string , object > test = Arguments . Parse ( "--one=1 -ab 2 / three:3 -4 4" ) . ArgumentDictionary ;
200
+ Dictionary < string , object > test = Arguments . Parse ( "--one=1 -ab 2 -- three:3 -4 4" ) . ArgumentDictionary ;
201
201
202
202
Assert . Equal ( "1" , test [ "one" ] ) ;
203
203
Assert . True ( test . ContainsKey ( "a" ) ) ;
@@ -355,7 +355,7 @@ public void ParseStrictOperandsStart()
355
355
[ Fact ]
356
356
public void ParseStringOfLongs ( )
357
357
{
358
- Dictionary < string , object > test = Arguments . Parse ( "--one 1 --two=2 / three:3 --four \" 4 4\" --five='5 5'" ) . ArgumentDictionary ;
358
+ Dictionary < string , object > test = Arguments . Parse ( "--one 1 --two=2 -- three:3 --four \" 4 4\" --five='5 5'" ) . ArgumentDictionary ;
359
359
360
360
Assert . NotEmpty ( test ) ;
361
361
Assert . Equal ( 5 , test . Count ) ;
@@ -395,6 +395,15 @@ public void ParseValueWithQuotedPeriod()
395
395
[ InlineData ( "\\ foo\\ bar" ) ]
396
396
[ InlineData ( "\\ \\ foo" ) ]
397
397
[ InlineData ( "\\ \\ foo\\ bar" ) ]
398
+ [ InlineData ( "..//" ) ]
399
+ [ InlineData ( ".//foo" ) ]
400
+ [ InlineData ( "..//foo" ) ]
401
+ [ InlineData ( "..//.." ) ]
402
+ [ InlineData ( "//" ) ]
403
+ [ InlineData ( "//foo" ) ]
404
+ [ InlineData ( "//foo//bar" ) ]
405
+ [ InlineData ( "////foo" ) ]
406
+ [ InlineData ( "////foo//bar" ) ]
398
407
public void ParseValueStartingWithNonWord ( string value )
399
408
{
400
409
Dictionary < string , object > test = Arguments . Parse ( $ "-f { value } ") . ArgumentDictionary ;
@@ -1100,12 +1109,11 @@ public class TestWithAllBools
1100
1109
[ InlineData ( "-abc" ) ]
1101
1110
[ InlineData ( "-a -b -c" ) ]
1102
1111
[ InlineData ( "--aa --bb --cc" ) ]
1103
- [ InlineData ( "/a /b /c" ) ]
1104
- [ InlineData ( "/aa /bb /cc" ) ]
1105
- [ InlineData ( "-a --bb /c" ) ]
1106
- [ InlineData ( "--aa -b /c" ) ]
1107
- [ InlineData ( "/a /b -c" ) ]
1108
- [ InlineData ( "-a /bb --cc" ) ]
1112
+ [ InlineData ( "-a -b -c" ) ]
1113
+ [ InlineData ( "--aa --bb --cc" ) ]
1114
+ [ InlineData ( "-a --bb -c" ) ]
1115
+ [ InlineData ( "--aa -b -c" ) ]
1116
+ [ InlineData ( "-a --bb --cc" ) ]
1109
1117
public void PopulateStackedBools ( string str )
1110
1118
{
1111
1119
Arguments . Populate ( GetType ( ) , str ) ;
0 commit comments