From ec257a8705ca9d3158682d5f544e40ab5a21e78a Mon Sep 17 00:00:00 2001 From: Naveen Gogineni Date: Mon, 15 Aug 2022 11:41:28 -0400 Subject: [PATCH] Fix tests per latest main --- flag_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/flag_test.go b/flag_test.go index 9ae4610..293bf70 100644 --- a/flag_test.go +++ b/flag_test.go @@ -1215,10 +1215,10 @@ var uintSliceFlagTests = []struct { value *UintSlice expected string }{ - {"heads", nil, NewUintSlice(), "--heads value\t(accepts multiple inputs)"}, - {"H", nil, NewUintSlice(), "-H value\t(accepts multiple inputs)"}, + {"heads", nil, NewUintSlice(), "--heads value [ --heads value ]\t"}, + {"H", nil, NewUintSlice(), "-H value [ -H value ]\t"}, {"heads", []string{"H"}, NewUintSlice(uint(2), uint(17179869184)), - "--heads value, -H value\t(default: 2, 17179869184)\t(accepts multiple inputs)"}, + "--heads value, -H value [ --heads value, -H value ]\t(default: 2, 17179869184)"}, } func TestUintSliceFlagHelpOutput(t *testing.T) { @@ -1311,10 +1311,10 @@ var uint64SliceFlagTests = []struct { value *Uint64Slice expected string }{ - {"heads", nil, NewUint64Slice(), "--heads value\t(accepts multiple inputs)"}, - {"H", nil, NewUint64Slice(), "-H value\t(accepts multiple inputs)"}, + {"heads", nil, NewUint64Slice(), "--heads value [ --heads value ]\t"}, + {"H", nil, NewUint64Slice(), "-H value [ -H value ]\t"}, {"heads", []string{"H"}, NewUint64Slice(uint64(2), uint64(17179869184)), - "--heads value, -H value\t(default: 2, 17179869184)\t(accepts multiple inputs)"}, + "--heads value, -H value [ --heads value, -H value ]\t(default: 2, 17179869184)"}, } func TestUint64SliceFlagHelpOutput(t *testing.T) { @@ -2717,13 +2717,13 @@ func TestFlagDefaultValue(t *testing.T) { name: "uint64Slice", flag: &Uint64SliceFlag{Name: "flag", Value: NewUint64Slice(1, 2)}, toParse: []string{"--flag", "13"}, - expect: `--flag value (default: 1, 2) (accepts multiple inputs)`, + expect: `--flag value [ --flag value ] (default: 1, 2)`, }, { name: "uintSlice", flag: &UintSliceFlag{Name: "flag", Value: NewUintSlice(1, 2)}, toParse: []string{"--flag", "13"}, - expect: `--flag value (default: 1, 2) (accepts multiple inputs)`, + expect: `--flag value [ --flag value ] (default: 1, 2)`, }, { name: "string",