aboutsummaryrefslogtreecommitdiff
path: root/tests/tcolumnize.nim
diff options
context:
space:
mode:
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)