mirror of
https://github.com/vale981/ray
synced 2025-03-12 06:06:39 -04: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()
|
||
|
}
|
||
|
}
|
||
|
|