mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 09:39:09 +00:00
17 lines
281 B
Go
17 lines
281 B
Go
package common_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/roleypoly/roleypoly/src/common"
|
|
)
|
|
|
|
func TestFindString(t *testing.T) {
|
|
if !common.FindString("hello", []string{"hello", "world"}) {
|
|
t.FailNow()
|
|
}
|
|
|
|
if common.FindString("foo", []string{"a", "b", "c"}) {
|
|
t.FailNow()
|
|
}
|
|
}
|