mirror of
https://github.com/mattn/go-colorable.git
synced 2025-01-22 20:40:22 +08:00
Merge pull request #72 from alexandear/fix-test-typo
Fix typo in TestNonColorableNil
This commit is contained in:
commit
74f8ed1281
@ -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