mirror of
https://github.com/vale981/ray
synced 2025-03-07 02:51:39 -05:00
17 lines
204 B
Go
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()
|
|
}
|
|
}
|