add alignTable, parseTableCells to align/format a tab(etc) delimited table (#10182)

* add compiler/unittest_light.nim for easy diffing: assertEquals and mismatch
* fixup
* add alignTable, parseTableCells
This commit is contained in:
Timothee Cour 2019-01-09 00:46:44 -08:00 • committed by Andreas Rumpf
commit 23c1ee982e
5 changed files with 291 additions and 0 deletions

7
tests/compiler/nim.cfg Normal file
View file

@ -0,0 +1,7 @@
# note: consider moving tests/compilerapi/ to tests/compiler/ since
# that's more predictable.
# note: without this, tests may succeed locally but fail on CI (it can succeed
# locally even when compiling via `./bin/nim` because `$HOME/.nimble` is being
# used).
--path:"../../" # so we can `import compiler/foo` in this dir