Merge pull request #72 from alexandear/fix-test-typo

Fix typo in TestNonColorableNil
This commit is contained in:
mattn 2025-01-10 17:33:50 +09:00 committed by GitHub
commit 74f8ed1281
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")
}
}