Skip to content

Commit 9bba39e

Browse files
committed
Add news bullet
1 parent be37cf5 commit 9bba39e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# testthat (development version)
22

3+
* Expectations now consistently return the value of the first argument, regardless of whether the expectation succeeds or fails. The primary exception are `expect_message()` and friends which will return the condition. This shouldn't affect existing tests, but will make failures clearer when you chain together multiple expectations (#2246).
34
* `set_state_inspector()` gains `tolerance` argument and ignores minor FP differences by default (@mcol, #2237).
45
* `expect_vector()` fails, instead of erroring, if `object` is not a vector (@plietar, #2224).
56
* New `vignette("mocking")` explains mocking in detail (#1265).

0 commit comments

Comments
 (0)