dragosmg commented on pull request #11534:
URL: https://github.com/apache/arrow/pull/11534#issuecomment-961860067
This is how the same chunk of code would look like with a helper function:
```
expect_snapshot({
err(
nse_funcs$str_to_lower("Apache Arrow", locale = "sp")
)
})
```
without the helper function:
```
expect_snapshot({
(expect_error(
nse_funcs$str_to_lower("Apache Arrow", locale = "sp")
))
})
```
where `err` is `err <- function(...) (expect_error(...))`. imho it makes the
code a bit easier on the eyes. let me know what you think.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]