@@ -15,7 +15,6 @@ func TestWithAlias(t *testing.T) {
1515 figs .NewString (cmdLong , valueLong , usage )
1616 figs .WithAlias (cmdLong , cmdAliasLong )
1717 assert .NoError (t , figs .Parse ())
18- t .Log (figs .Usage ())
1918
2019 assert .Equal (t , valueLong , * figs .String (cmdLong ))
2120 assert .Equal (t , valueLong , * figs .String (cmdAliasLong ))
@@ -33,7 +32,6 @@ func TestWithAlias(t *testing.T) {
3332 figs .WithAlias (k , ka2 )
3433 figs .WithAlias (k , ka3 )
3534 assert .NoError (t , figs .Parse ())
36- t .Log (figs .Usage ())
3735
3836 assert .Equal (t , v , * figs .String (k ))
3937 assert .Equal (t , v , * figs .String (ka1 ))
@@ -56,7 +54,7 @@ func TestWithAlias(t *testing.T) {
5654 figs .WithValidator (cmdShort , AssureStringNotEmpty )
5755
5856 assert .NoError (t , figs .Parse ())
59- t . Log ( figs . Usage ())
57+
6058 // long
6159 assert .Equal (t , valueLong , * figs .String (cmdLong ))
6260 assert .Equal (t , valueLong , * figs .String (cmdAliasLong ))
@@ -73,7 +71,6 @@ func TestWithAlias(t *testing.T) {
7371 figs .NewInt ("count" , 42 , "usage" )
7472 figs .WithAlias ("count" , "c" )
7573 assert .NoError (t , figs .Parse ())
76- t .Log (figs .Usage ())
7774 assert .Equal (t , 42 , * figs .Int ("count" ))
7875 assert .Equal (t , 42 , * figs .Int ("c" ))
7976 })
@@ -86,6 +83,5 @@ func TestWithAlias(t *testing.T) {
8683 figs .WithAlias ("two" , "x" ) // Should this overwrite or be ignored?
8784 assert .NoError (t , figs .Parse ())
8885 assert .Equal (t , "value1" , * figs .String ("x" )) // Clarify expected behavior
89- t .Log (figs .Usage ())
9086 })
9187}
0 commit comments