21 lines
295 B
Go
21 lines
295 B
Go
package verbose_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.ophivana.moe/cat/fortify/internal/verbose"
|
|
)
|
|
|
|
func TestGetSet(t *testing.T) {
|
|
verbose.Set(false)
|
|
if verbose.Get() {
|
|
t.Errorf("Get() = true, want false")
|
|
}
|
|
|
|
verbose.Set(true)
|
|
if !verbose.Get() {
|
|
t.Errorf("Get() = false, want true")
|
|
}
|
|
|
|
}
|