Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinsimpson committed Feb 3, 2024
1 parent b03ec72 commit 898f854
Show file tree
Hide file tree
Showing 33 changed files with 1,496 additions and 1,587 deletions.
20 changes: 10 additions & 10 deletions tests/testthat/_snaps/backward/response-derivatives.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
# A tibble: 50 x 9
.row .focal .derivative .lower_ci .upper_ci x0 x1 x2 x3
<int> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 1 x2 19.8 16.3 23.2 0.480 0.478 0.00127 0.537
2 2 x2 24.9 19.4 30.1 0.480 0.478 0.0216 0.537
3 3 x2 31.6 23.9 39.3 0.480 0.478 0.0420 0.537
4 4 x2 40.4 31.0 50.7 0.480 0.478 0.0624 0.537
5 5 x2 51.6 41.0 64.1 0.480 0.478 0.0828 0.537
6 6 x2 64.8 53.7 78.2 0.480 0.478 0.103 0.537
7 7 x2 78.4 66.6 92.0 0.480 0.478 0.123 0.537
8 8 x2 88.8 74.9 104. 0.480 0.478 0.144 0.537
9 9 x2 91.2 74.1 110. 0.480 0.478 0.164 0.537
10 10 x2 80.9 62.2 102. 0.480 0.478 0.185 0.537
1 1 x2 19.8 16.2 23.2 0.480 0.478 0.00127 0.537
2 2 x2 24.9 19.2 30.1 0.480 0.478 0.0216 0.537
3 3 x2 31.6 23.7 39.3 0.480 0.478 0.0420 0.537
4 4 x2 40.5 30.9 50.7 0.480 0.478 0.0624 0.537
5 5 x2 51.7 40.8 63.9 0.480 0.478 0.0828 0.537
6 6 x2 64.9 53.6 77.9 0.480 0.478 0.103 0.537
7 7 x2 78.5 66.6 92.0 0.480 0.478 0.123 0.537
8 8 x2 88.9 75.1 104. 0.480 0.478 0.144 0.537
9 9 x2 91.1 74.3 110. 0.480 0.478 0.164 0.537
10 10 x2 80.9 62.0 102. 0.480 0.478 0.185 0.537
# i 40 more rows

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions tests/testthat/_snaps/central/response-derivatives.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
# A tibble: 50 x 9
.row .focal .derivative .lower_ci .upper_ci x0 x1 x2 x3
<int> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 1 x2 19.8 16.3 23.2 0.480 0.478 0.00127 0.537
2 2 x2 24.9 19.4 30.1 0.480 0.478 0.0216 0.537
3 3 x2 31.6 23.9 39.3 0.480 0.478 0.0420 0.537
4 4 x2 40.4 31.0 50.7 0.480 0.478 0.0624 0.537
5 5 x2 51.6 41.0 64.1 0.480 0.478 0.0828 0.537
6 6 x2 64.8 53.7 78.2 0.480 0.478 0.103 0.537
7 7 x2 78.4 66.6 92.0 0.480 0.478 0.123 0.537
8 8 x2 88.8 74.9 104. 0.480 0.478 0.144 0.537
9 9 x2 91.2 74.1 110. 0.480 0.478 0.164 0.537
10 10 x2 80.9 62.2 102. 0.480 0.478 0.185 0.537
1 1 x2 19.8 16.2 23.2 0.480 0.478 0.00127 0.537
2 2 x2 24.9 19.2 30.1 0.480 0.478 0.0216 0.537
3 3 x2 31.6 23.7 39.3 0.480 0.478 0.0420 0.537
4 4 x2 40.5 30.9 50.7 0.480 0.478 0.0624 0.537
5 5 x2 51.7 40.8 63.9 0.480 0.478 0.0828 0.537
6 6 x2 64.9 53.6 77.9 0.480 0.478 0.103 0.537
7 7 x2 78.5 66.6 92.0 0.480 0.478 0.123 0.537
8 8 x2 88.9 75.1 104. 0.480 0.478 0.144 0.537
9 9 x2 91.1 74.3 110. 0.480 0.478 0.164 0.537
10 10 x2 80.9 62.0 102. 0.480 0.478 0.185 0.537
# i 40 more rows

21 changes: 21 additions & 0 deletions tests/testthat/_snaps/datagen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# datagen is deprecated

Code
datagen(get_smooths_by_id(m_gam, 1)[[1L]], data = su_eg1, n = 10)
Condition
Warning:
`datagen()` was deprecated in gratia 0.9.0.
i Please use `data_slice()` instead.
Output
smooth x
1 s(x0) 0.00131
2 s(x0) 0.11227
3 s(x0) 0.22323
4 s(x0) 0.33419
5 s(x0) 0.44514
6 s(x0) 0.55610
7 s(x0) 0.66706
8 s(x0) 0.77802
9 s(x0) 0.88897
10 s(x0) 0.99993

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 898f854

Please sign in to comment.