consolidate ArgsToStrings

This commit is contained in:
Shivaram Lingamneni 2020-12-30 00:41:34 -05:00
parent 0c9ecbade7
commit ec375f5bdc
5 changed files with 22 additions and 42 deletions

View file

@ -35,3 +35,11 @@ func TestTokenLineBuilder(t *testing.T) {
t.Errorf("text incorrectly split into lines: %s instead of %s", joined, monteCristo)
}
}
func TestBuildTokenLines(t *testing.T) {
val := BuildTokenLines(512, []string{"a", "b", "c"}, ",")
assertEqual(val, []string{"a,b,c"}, t)
val = BuildTokenLines(10, []string{"abcd", "efgh", "ijkl"}, ",")
assertEqual(val, []string{"abcd,efgh", "ijkl"}, t)
}