We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
==
When the unevaluated call to ok is to == (or another known function), redirect it to a ut_cmp_eq() that can:
ut_cmp_eq()
all(x == y)
ok()
all(isTRUE(result))
The text was updated successfully, but these errors were encountered:
For this to work we'd need some kind of ut_cmp_eq() to pass through to, e.g:
ut_cmp_eq <- function(a, b) unittest:::cmp_inner( a, b, comparison_fn = function(a, b) all(a == b), filter = function (x) writeLines(paste0("[", seq_along(x), "]", format(x))), context_lines = 1e8) ut_cmp_eq(1:5, c(1, 4, 2, 9, 444)) ut_cmp_eq(1:5, c(1:3, 99, 5))
The formatting here is okay, but not sure it'd survive more complex objects.
Sorry, something went wrong.
No branches or pull requests
When the unevaluated call to ok is to
==
(or another known function), redirect it to aut_cmp_eq()
that can:all(x == y)
(possibly this is somethingok()
should be doing anyway, and acceptingall(isTRUE(result))
as success)==
on it's own, in the appropriate environmentThe text was updated successfully, but these errors were encountered: