mirror of
https://github.com/mattn/go-colorable.git
synced 2025-01-22 20:40:22 +08:00
Fix typo in TestNonColorableNil
This commit is contained in:
parent
603fb50de6
commit
50c5b53597
@ -48,17 +48,17 @@ func TestNonColorable(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestNonColorableNil(t *testing.T) {
|
||||
paniced := false
|
||||
panicked := false
|
||||
func() {
|
||||
defer func() {
|
||||
recover()
|
||||
paniced = true
|
||||
panicked = true
|
||||
}()
|
||||
NewNonColorable(nil)
|
||||
NewColorable(nil)
|
||||
}()
|
||||
|
||||
if !paniced {
|
||||
if !panicked {
|
||||
t.Fatalf("should panic")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user