@@ -47,7 +47,7 @@ class SettingsTests {
47
47
48
48
inContext {
49
49
val args = List (" -foo" , " b" , " -bar" , " 1" )
50
- val summary = Settings .processArguments(args, Settings .defaultState, true )
50
+ val summary = Settings .processArguments(args, true )
51
51
assertTrue(summary.errors.isEmpty)
52
52
given SettingsState = summary.sstate
53
53
assertEquals(" b" , Settings .foo.value)
@@ -65,7 +65,7 @@ class SettingsTests {
65
65
66
66
inContext {
67
67
val args = List (" -foo" , " b" , " -bar" , " 1" , " -baz" , " 5" )
68
- val summary = Settings .processArguments(args, Settings .defaultState, true )
68
+ val summary = Settings .processArguments(args, true )
69
69
assertTrue(summary.errors.isEmpty)
70
70
given SettingsState = summary.sstate
71
71
assertEquals(" b" , Settings .foo.value)
@@ -75,15 +75,15 @@ class SettingsTests {
75
75
76
76
inContext {
77
77
val args = List (" -foo:b" )
78
- val summary = Settings .processArguments(args, Settings .defaultState, true )
78
+ val summary = Settings .processArguments(args, true )
79
79
assertTrue(summary.errors.isEmpty)
80
80
given SettingsState = summary.sstate
81
81
assertEquals(" b" , Settings .foo.value)
82
82
}
83
83
84
84
inContext {
85
85
val args = List (" -foo" , " c" , " -bar" , " 3" , " -baz" , " -1" )
86
- val summary = Settings .processArguments(args, Settings .defaultState, true )
86
+ val summary = Settings .processArguments(args, true )
87
87
val expectedErrors = List (
88
88
" c is not a valid choice for -foo" ,
89
89
" 3 is not a valid choice for -bar" ,
@@ -94,14 +94,14 @@ class SettingsTests {
94
94
95
95
inContext {
96
96
val args = List (" -foo:c" )
97
- val summary = Settings .processArguments(args, Settings .defaultState, true )
97
+ val summary = Settings .processArguments(args, true )
98
98
val expectedErrors = List (" c is not a valid choice for -foo" )
99
99
assertEquals(expectedErrors, summary.errors)
100
100
}
101
101
102
102
inContext {
103
103
val args = List (" -quux" , " a" , " -quuz" , " 0" )
104
- val summary = Settings .processArguments(args, Settings .defaultState, true )
104
+ val summary = Settings .processArguments(args, true )
105
105
val expectedErrors = List (
106
106
" a is not a valid choice for -quux" ,
107
107
" 0 is not a valid choice for -quuz" ,
0 commit comments