From bb3ef24f8db4e1a02649c06c6d0b5015562cd869 Mon Sep 17 00:00:00 2001 From: historia Date: Thu, 22 Aug 2024 19:32:54 -0400 Subject: fix: attachments with commas and whole-agenda columnized --- tests/tcolumnize.nim | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'tests/tcolumnize.nim') 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) -- cgit v1.2.3