@@ -51,7 +51,7 @@ func TestFlag_ToSlice(t *testing.T) {
51
51
t .Run ("long flag" , func (t * testing.T ) {
52
52
f := NewFlag ("full" , "abc" )
53
53
args := f .ToSlice (testStep .GetDashes ())
54
- assert .Equal (t , []string {"--full" , " abc" }, args )
54
+ assert .Equal (t , []string {"--full= abc" }, args )
55
55
})
56
56
57
57
t .Run ("valueless flag" , func (t * testing.T ) {
@@ -67,7 +67,7 @@ func TestFlag_ToSlice(t *testing.T) {
67
67
t .Run ("flag with non-default dashes" , func (t * testing.T ) {
68
68
f := NewFlag ("full" , "abc" )
69
69
args := f .ToSlice (dashes )
70
- assert .Equal (t , []string {"---full" , " abc" }, args )
70
+ assert .Equal (t , []string {"---full= abc" }, args )
71
71
})
72
72
}
73
73
@@ -80,7 +80,7 @@ func TestFlags_ToSlice(t *testing.T) {
80
80
args := flags .ToSlice (testStep .GetDashes ())
81
81
82
82
// Flags should be sorted and sliced up on a platter
83
- assert .Equal (t , []string {"-a" , "1" , "--bull" , " 2" }, args )
83
+ assert .Equal (t , []string {"-a" , "1" , "--bull= 2" }, args )
84
84
}
85
85
86
86
func TestFlags_NonStringKeys (t * testing.T ) {
0 commit comments