goext/langext/array_test.go

13 lines
222 B
Go
Raw Normal View History

2023-08-14 16:05:12 +02:00
package langext
import (
"gogs.mikescher.com/BlackForestBytes/goext/tst"
"testing"
)
func TestJoinString(t *testing.T) {
ids := []string{"1", "2", "3"}
res := JoinString(ids, ",")
tst.AssertEqual(t, res, "1,2,3")
}