Closed maelle closed 3 years ago
Aha. I generally write tests so that the testthat
expectations are on separate lines to the function calls themselves. I've gotten used to that, and now find that much easier to read than all-on-one-line. More so with string expectations like:
expect_message(function(x),
"This is a message")
I find that the function(x)
call gets lost there, and so started putting them on separate lines. That said, expectations that could be combined into single lines wouldn't be bad at all, so feel free to PR that, or I'll get on to it at some stage. Thanks
or maybe I'd already find test files easier to read with #67 + if
were not that high (I do like the idea of clear line diffs though)
:thinking:
I find them hard to read, e.g.
could be
expect_output (chk <- pkgcheck (d) )
to see more content at once on the screen?