Skip to content

Commit 4e2e0d4

Browse files
committed
Add news bullet
1 parent c5719e6 commit 4e2e0d4

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+
* `expect_all_equal()`, `expect_all_true()`, and `expect_all_false()` are a new family of expectations that checks that every element of a vector has the same value. Compared to using `expect_true(all(...))` they give better failure messages (#1836, #2235).
34
* 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).
45
* `set_state_inspector()` gains `tolerance` argument and ignores minor FP differences by default (@mcol, #2237).
56
* `expect_vector()` fails, instead of erroring, if `object` is not a vector (@plietar, #2224).

0 commit comments

Comments
 (0)