aboutsummaryrefslogtreecommitdiff
path: root/tests/tcolumnize.nim
diff options
context:
space:
mode:
authorhistoria <gravel.justness270@slmail.me>2024-08-22 19:32:54 -0400
committerhistoria <gravel.justness270@slmail.me>2024-08-22 19:32:54 -0400
commitbb3ef24f8db4e1a02649c06c6d0b5015562cd869 (patch)
tree78551230cb7a7217a62542469df091fe1e8c99b7 /tests/tcolumnize.nim
parent4b36a54b7b486b3efd7c13e995d896577e916dfb (diff)
downloadsoon-bb3ef24f8db4e1a02649c06c6d0b5015562cd869.tar.gz
fix: attachments with commas and whole-agenda columnized
Diffstat (limited to 'tests/tcolumnize.nim')
-rw-r--r--tests/tcolumnize.nim15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/tcolumnize.nim b/tests/tcolumnize.nim
index 950b040..0e8e1c8 100644
--- a/tests/tcolumnize.nim
+++ b/tests/tcolumnize.nim
@@ -1,11 +1,8 @@
import soon/columnize
-import std/[unittest, strutils]
+import std/[unittest]
-test "Testing columize":
- var table = newSeq[seq[string]]()
- let line1 = @["Jan 1", "(OVERDUE)", "Do the thing"]
- let line2 = @["Feb 22", "(Due in 24 days)", "Do that other thing"]
- table.add(line1)
- table.add(line2)
- for line in columnize(table):
- echo line.join(" ")
+test "Testing columnize":
+ var table = newSeq[Line]()
+ table.add(Line(columns: @["Jan 1", "(OVERDUE)", "Do the thing"], attachments: @[]))
+ table.add(Line(columns: @["Feb 22", "(Due in 24 days)", "Do that other thing"], attachments: @[]))
+ columnize.echo(table)