Assignment in expect_no_warning()
does not work if a warning was thrown
#1991
Labels
expect_no_warning()
does not work if a warning was thrown
#1991
expect_no_warning()
seems to behave somewhat inconsistent to the rest of the family (e.g. compared toexpect_warning()
): Assignment inside the body fails if a warning was thrown.There was a similar discussion in #998 where this was deemed a bug.
Note the second try, variable
b
: it's the only case where assignment does not work, in all other cases it works.Created on 2024-10-04 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: