ray/deploy/ray-operator/controllers/utils/util_test.go
2020-03-09 11:23:46 -07:00

17 lines
204 B
Go

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()
}
}