Skip to content

Commit

Permalink
updated snapshots for 29c7d07
Browse files Browse the repository at this point in the history
  • Loading branch information
topepo committed Oct 19, 2024
1 parent 29c7d07 commit e64bdf0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
32 changes: 16 additions & 16 deletions tests/testthat/_snaps/in-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,47 +131,47 @@
Code
d_target(x, 0:1, 2, 3)
Condition
Error in `stop_input_type()`:
Error in `d_target()`:
! `low` must be a number, not an integer vector.

---

Code
d_target(x, 0, 1:2, 3)
Condition
Error in `stop_input_type()`:
Error in `d_target()`:
! `target` must be a number or `NULL`, not an integer vector.

---

Code
d_target(x, 0, 1, 2:3)
Condition
Error in `stop_input_type()`:
Error in `d_target()`:
! `high` must be a number, not an integer vector.

---

Code
d_target(x, NA_real_, 1, 2)
Condition
Error in `stop_input_type()`:
Error in `d_target()`:
! `low` must be a number, not a numeric `NA`.

---

Code
d_target(x, 0, NA_real_, 1)
Condition
Error in `stop_input_type()`:
Error in `d_target()`:
! `target` must be a number or `NULL`, not a numeric `NA`.

---

Code
d_target(x, 0, 1, NA_real_)
Condition
Error in `stop_input_type()`:
Error in `d_target()`:
! `high` must be a number, not a numeric `NA`.

---
Expand Down Expand Up @@ -227,23 +227,23 @@
Code
d_custom(x, x_points[-1], d_points)
Condition
Error in `is_vector_args()`:
! '`values`' and '`d`' should be the same length.
Error in `d_custom()`:
! `values` (4) and `d` (5) should be the same length.

---

Code
d_custom(x, x_points, d_points[-1])
Condition
Error in `is_vector_args()`:
! '`values`' and '`d`' should be the same length.
Error in `d_custom()`:
! `values` (5) and `d` (4) should be the same length.

---

Code
d_custom(x, letters, d_points)
Condition
Error in `is_vector_args()`:
Error in `d_custom()`:
! `values` should be a numeric vector.

---
Expand All @@ -259,39 +259,39 @@
Code
d_box(x, 0, -1)
Condition
Error in `check_value_order()`:
Error in `d_box()`:
! The values should be `low < high` (actual are 0 and -1).

---

Code
d_box(x, 0:1, 2)
Condition
Error in `stop_input_type()`:
Error in `d_box()`:
! `low` must be a number, not an integer vector.

---

Code
d_box(x, 0, 1:2)
Condition
Error in `stop_input_type()`:
Error in `d_box()`:
! `high` must be a number, not an integer vector.

---

Code
d_box(x, NA_real_, 1:2)
Condition
Error in `stop_input_type()`:
Error in `d_box()`:
! `low` must be a number, not a numeric `NA`.

---

Code
d_box(x, 0, NA_real_)
Condition
Error in `stop_input_type()`:
Error in `d_box()`:
! `high` must be a number, not a numeric `NA`.

---
Expand Down
18 changes: 9 additions & 9 deletions tests/testthat/_snaps/use-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,70 +3,70 @@
Code
d_max(dat, high = 2)
Condition
Error in `check_args()`:
Error in `d_max()`:
! In `d_max()`, argument `low` is required when `new_data = FALSE`.

---

Code
d_max(dat, low = 2)
Condition
Error in `check_args()`:
Error in `d_max()`:
! In `d_max()`, argument `high` is required when `new_data = FALSE`.

---

Code
d_min(dat, high = 2)
Condition
Error in `check_args()`:
Error in `d_min()`:
! In `d_min()`, argument `low` is required when `new_data = FALSE`.

---

Code
d_min(dat, low = 2)
Condition
Error in `check_args()`:
Error in `d_min()`:
! In `d_min()`, argument `high` is required when `new_data = FALSE`.

---

Code
d_box(dat, high = 2)
Condition
Error in `check_args()`:
Error in `d_box()`:
! In `d_box()`, argument `low` is required when `new_data = FALSE`.

---

Code
d_box(dat, low = 2)
Condition
Error in `check_args()`:
Error in `d_box()`:
! In `d_box()`, argument `high` is required when `new_data = FALSE`.

---

Code
d_target(dat, target = 2, high = 2)
Condition
Error in `check_args()`:
Error in `d_target()`:
! In `d_target()`, argument `low` is required when `new_data = FALSE`.

---

Code
d_target(dat, low = 2, high = 2)
Condition
Error in `check_args()`:
Error in `d_target()`:
! In `d_target()`, argument `target` is required when `new_data = FALSE`.

---

Code
d_target(dat, low = 2, target = 2)
Condition
Error in `check_args()`:
Error in `d_target()`:
! In `d_target()`, argument `high` is required when `new_data = FALSE`.

0 comments on commit e64bdf0

Please sign in to comment.