mirror of
https://github.com/status-im/consul.git
synced 2025-01-29 15:05:04 +00:00
16 lines
229 B
Go
16 lines
229 B
Go
package consul
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestStrContains(t *testing.T) {
|
|
l := []string{"a", "b", "c"}
|
|
if !strContains(l, "b") {
|
|
t.Fatalf("should contain")
|
|
}
|
|
if strContains(l, "d") {
|
|
t.Fatalf("should not contain")
|
|
}
|
|
}
|