Skip to content
New issue

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

fail_if() gives a cryptic message if cond errors #340

Closed
rossellhayes opened this issue Apr 4, 2023 · 0 comments · Fixed by #341
Closed

fail_if() gives a cryptic message if cond errors #340

rossellhayes opened this issue Apr 4, 2023 · 0 comments · Fixed by #341
Assignees

Comments

@rossellhayes
Copy link
Contributor

grade_this({
  fail_if(!all.equal(.result, .solution), "Oops!")
})(mock_this_exercise("1", "2"))
#> #> grade_this({
#> #>     fail_if(!all.equal(.result, .solution), "Oops!")
#> #> })(mock_this_exercise("1", "2"))
#> Error in rlang::is_formula(x): invalid argument type
#> <gradethis_graded: [Neutral]
#>   A problem occurred with the grading code for this exercise.
#> >

Created on 2023-04-04 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant