mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
[operator] Minor cleanup (#7498)
This commit is contained in:
@@ -3,16 +3,15 @@ package utils
|
||||
import "testing"
|
||||
|
||||
func TestBefore(t *testing.T) {
|
||||
if Before("a","b") != ""{
|
||||
if Before("a", "b") != "" {
|
||||
t.Fail()
|
||||
}
|
||||
|
||||
if Before("aaa","a") != ""{
|
||||
if Before("aaa", "a") != "" {
|
||||
t.Fail()
|
||||
}
|
||||
|
||||
if Before("aab","b") != "aa"{
|
||||
if Before("aab", "b") != "aa" {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user