|
|
|
|
@ -14,7 +14,7 @@ func TestMetaColorize(t *testing.T) {
|
|
|
|
|
m.Color = true
|
|
|
|
|
args = []string{"foo", "bar"}
|
|
|
|
|
args2 = []string{"foo", "bar"}
|
|
|
|
|
args = m.process(args)
|
|
|
|
|
args = m.process(args, false)
|
|
|
|
|
if !reflect.DeepEqual(args, args2) {
|
|
|
|
|
t.Fatalf("bad: %#v", args)
|
|
|
|
|
}
|
|
|
|
|
@ -26,7 +26,7 @@ func TestMetaColorize(t *testing.T) {
|
|
|
|
|
m = new(Meta)
|
|
|
|
|
args = []string{"foo", "bar"}
|
|
|
|
|
args2 = []string{"foo", "bar"}
|
|
|
|
|
args = m.process(args)
|
|
|
|
|
args = m.process(args, false)
|
|
|
|
|
if !reflect.DeepEqual(args, args2) {
|
|
|
|
|
t.Fatalf("bad: %#v", args)
|
|
|
|
|
}
|
|
|
|
|
@ -38,7 +38,7 @@ func TestMetaColorize(t *testing.T) {
|
|
|
|
|
m = new(Meta)
|
|
|
|
|
args = []string{"foo", "-no-color", "bar"}
|
|
|
|
|
args2 = []string{"foo", "bar"}
|
|
|
|
|
args = m.process(args)
|
|
|
|
|
args = m.process(args, false)
|
|
|
|
|
if !reflect.DeepEqual(args, args2) {
|
|
|
|
|
t.Fatalf("bad: %#v", args)
|
|
|
|
|
}
|
|
|
|
|
|