From cb35bd463a53383c06e60be4d843bdf1e7d9d68b Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 11 Aug 2025 15:09:08 -0400 Subject: fix: deadline wasn't parsing years --- tests/tcolumnize.nim | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'tests/tcolumnize.nim') 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) -- cgit v1.2.3