ray/deploy/ray-operator/controllers/utils/util_test.go

19 lines
199 B
Go
Raw Normal View History

2020-01-10 06:16:08 +08:00
package utils
import "testing"
func TestBefore(t *testing.T) {
if Before("a","b") != ""{
t.Fail()
}
if Before("aaa","a") != ""{
t.Fail()
}
if Before("aab","b") != "aa"{
t.Fail()
}
}