mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 15:40:09 +08:00
19 lines
199 B
Go
19 lines
199 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()
|
|
}
|
|
}
|
|
|