Files
EdgeCommon/pkg/configutils/match_test.go

15 lines
260 B
Go
Raw Normal View History

2020-09-13 19:27:47 +08:00
package configutils
import (
"testing"
2024-07-27 13:29:26 +08:00
"github.com/iwind/TeaGo/assert"
2020-09-13 19:27:47 +08:00
)
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"))
}