diff options
Diffstat (limited to 'tests/tcolumnize.nim')
| -rw-r--r-- | tests/tcolumnize.nim | 15 |
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) |
