12 lines
202 B
Go
12 lines
202 B
Go
package util
|
|
|
|
import "testing"
|
|
|
|
func TestJoinWithSep(t *testing.T) {
|
|
want := "1_2_3_4"
|
|
have := JoinWithSep("_", "1", "2", "3", "4")
|
|
if want != have {
|
|
t.Errorf("got %q, wanted %q", have, want)
|
|
}
|
|
}
|