Open ringabout opened 4 years ago
git diff --color-moved --color-moved-ws=ignore-all-space cbc793b^..cbc793b | grep '\binclude\b'
+include parsecsv +include stats +include uri
=> use similar technique to transform those into import
s/assert/doAssert/
under tests/
; curious which cases would need to stay as assert
, besides maybe a test that actually tests for assert (eg in tests/assert/tassert.nim or such)
(refs: https://github.com/timotheecour/Nim/issues/64#issuecomment-734452033)clean unittest style
can you clarify what you mean? eg,
suite "Bacon":
test ">:)":
check(foo == bar)
I'd write it as:
block: # Bacon
check foo == bar
(but not necessarily doAssert foo == bar
)
which adhers to the principle of: "only print something if there's something wrong", unlike suite "Bacon":
which outputs [suite] Bacon
regardless if test pass/failed, and is more informative than doAssert foo == bar
when test fails
https://github.com/nim-lang/Nim/pull/16096#discussion_r530240265 https://github.com/nim-lang/Nim/pull/16101#discussion_r530604793