aboutsummaryrefslogtreecommitdiff
path: root/tests/tcolumnize.nim
diff options
context:
space:
mode:
authorhistoria <[not public]>2025-08-11 15:09:08 -0400
committerhistoria <[not public]>2025-08-11 15:09:08 -0400
commitcb35bd463a53383c06e60be4d843bdf1e7d9d68b (patch)
tree7f936e4de575d403fcb887d92fa34756c55e9976 /tests/tcolumnize.nim
parenta3e3aae87e8f159749863987dfaff336a9ef89fe (diff)
downloadsoon-cb35bd463a53383c06e60be4d843bdf1e7d9d68b.tar.gz
fix: deadline wasn't parsing years
Diffstat (limited to 'tests/tcolumnize.nim')
-rw-r--r--tests/tcolumnize.nim15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/tcolumnize.nim b/tests/tcolumnize.nim
index 0e8e1c8..15f0171 100644
--- a/tests/tcolumnize.nim
+++ b/tests/tcolumnize.nim
@@ -3,6 +3,17 @@ import std/[unittest]
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: @[]))
+
+ table.add(Line(columns: @[
+ Column(text: "Jan 1", color: fgWhite),
+ Column(text: "(OVERDUE)", color: fgRed),
+ Column(text: "Do the thing", color: fgBlue)
+ ], attachments: @[]))
+
+ table.add(Line(columns: @[
+ Column(text: "Feb 22", color: fgWhite),
+ Column(text: "(Due in 24 days)", color: fgGreen),
+ Column(text: "Do that other thing", color: fgBlue)
+ ], attachments: @[]))
+
columnize.echo(table)