mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-26 17:18:09 -07:00
consolidate ArgsToStrings
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user