mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
consolidate ArgsToStrings
This commit is contained in:
parent
0c9ecbade7
commit
ec375f5bdc
5 changed files with 22 additions and 42 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue