From 4b36a54b7b486b3efd7c13e995d896577e916dfb Mon Sep 17 00:00:00 2001 From: historia Date: Wed, 21 Aug 2024 07:10:04 -0400 Subject: feat: column printer module and deadline dates --- tests/tcolumnize.nim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/tcolumnize.nim (limited to 'tests') diff --git a/tests/tcolumnize.nim b/tests/tcolumnize.nim new file mode 100644 index 0000000..950b040 --- /dev/null +++ b/tests/tcolumnize.nim @@ -0,0 +1,11 @@ +import soon/columnize +import std/[unittest, strutils] + +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(" ") -- cgit v1.2.3