Files
EdgeCommon/pkg/serverconfigs/configutils/match_test.go
2020-09-13 19:27:47 +08:00

14 lines
259 B
Go

package configutils
import (
"github.com/iwind/TeaGo/assert"
"testing"
)
func TestMatchKeyword(t *testing.T) {
a := assert.NewAssertion(t)
a.IsTrue(MatchKeyword("a b c", "a"))
a.IsFalse(MatchKeyword("a b c", ""))
a.IsTrue(MatchKeyword("abc", "BC"))
}