mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 04:55:04 +08:00
18 lines
204 B
Go
18 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()
|
|
}
|
|
}
|