Skip to content

Commit ceecafd

Browse files
committed
✅ ci: fix github action test error
1 parent 0c48921 commit ceecafd

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

cmd_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,12 @@ func TestInts(t *testing.T) {
398398
is.NoErr(err)
399399
err = ints.Set("3")
400400
is.NoErr(err)
401-
is.Eq("[1 3]", ints.String())
401+
is.Eq("[1,3]", ints.String())
402402
err = ints.Set("abc")
403403
is.Err(err)
404404

405405
ints = gcli.Ints{1, 3}
406-
is.Eq("[1 3]", ints.String())
406+
is.Eq("[1,3]", ints.String())
407407
}
408408

409409
func TestStrings(t *testing.T) {
@@ -430,7 +430,7 @@ func TestBooleans(t *testing.T) {
430430

431431
err = val.Set("True")
432432
is.NoErr(err)
433-
is.Eq("[false true]", val.String())
433+
is.Eq("[false,true]", val.String())
434434

435435
err = val.Set("abc")
436436
is.Err(err)

gcli.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,23 +244,18 @@ func IsDebugMode() bool { return gOpts.Verbose >= VerbDebug }
244244
*************************************************************************/
245245

246246
// Ints The int flag list, implemented flag.Value interface
247-
// Deprecated
248247
type Ints = cflag.Ints
249248

250249
// Strings The string flag list, implemented flag.Value interface
251-
// Deprecated
252250
type Strings = cflag.Strings
253251

254252
// Booleans The bool flag list, implemented flag.Value interface
255-
// Deprecated
256253
type Booleans = cflag.Booleans
257254

258255
// EnumString The string flag list, implemented flag.Value interface
259-
// Deprecated
260256
type EnumString = cflag.EnumString
261257

262258
// String type, a special string
263-
// Deprecated
264259
type String = cflag.String
265260

266261
/*************************************************************************

gflag/gflag_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func TestFlags_VarOpt(t *testing.T) {
201201
assert.NoErr(t, fs.Parse([]string{"--ints", "12", "--ints", "16"}))
202202

203203
assert.Len(t, ints, 2)
204-
assert.Eq(t, "[12 16]", ints.String())
204+
assert.Eq(t, "[12,16]", ints.String())
205205

206206
var ss gcli.Strings
207207
fs.VarOpt(&ss, "names", "n,s", "desc")

0 commit comments

Comments
 (0)