Skip to content

Commit

Permalink
some more updated snapshots for #251
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinsimpson committed Mar 5, 2024
1 parent 51490aa commit f9e2ec7
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 3 deletions.
22 changes: 21 additions & 1 deletion tests/testthat/_snaps/backward/response-derivatives.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# response derivatives works
# first order response derivatives works

Code
print(yd)
Expand All @@ -18,3 +18,23 @@
10 10 x2 80.9 62.0 102. 0.480 0.478 0.185 0.537
# i 40 more rows

# second order response derivatives works

Code
print(yd)
Output
# 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 214. 109. 315. 0.480 0.478 0.00127 0.537
2 2 x2 283. 166. 417. 0.480 0.478 0.0216 0.537
3 3 x2 385. 282. 529. 0.480 0.478 0.0420 0.537
4 4 x2 489. 388. 632. 0.480 0.478 0.0624 0.537
5 5 x2 610. 481. 747. 0.480 0.478 0.0828 0.537
6 6 x2 681. 459. 898. 0.480 0.478 0.103 0.537
7 7 x2 622. 283. 947. 0.480 0.478 0.123 0.537
8 8 x2 359. -49.4 749. 0.480 0.478 0.144 0.537
9 9 x2 -149. -560. 249. 0.480 0.478 0.164 0.537
10 10 x2 -862. -1308. -470. 0.480 0.478 0.185 0.537
# i 40 more rows

22 changes: 21 additions & 1 deletion tests/testthat/_snaps/central/response-derivatives.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# response derivatives works
# first order response derivatives works

Code
print(yd)
Expand All @@ -18,3 +18,23 @@
10 10 x2 80.9 62.0 102. 0.480 0.478 0.185 0.537
# i 40 more rows

# second order response derivatives works

Code
print(yd)
Output
# 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 219. 125. 311. 0.480 0.478 0.00127 0.537
2 2 x2 282. 176. 407. 0.480 0.478 0.0216 0.537
3 3 x2 371. 261. 522. 0.480 0.478 0.0420 0.537
4 4 x2 496. 397. 633. 0.480 0.478 0.0624 0.537
5 5 x2 606. 477. 744. 0.480 0.478 0.0828 0.537
6 6 x2 675. 466. 881. 0.480 0.478 0.103 0.537
7 7 x2 625. 298. 940. 0.480 0.478 0.123 0.537
8 8 x2 350. -51.7 739. 0.480 0.478 0.144 0.537
9 9 x2 -164. -562. 216. 0.480 0.478 0.164 0.537
10 10 x2 -867. -1299. -489. 0.480 0.478 0.185 0.537
# i 40 more rows

22 changes: 21 additions & 1 deletion tests/testthat/_snaps/forward/response-derivatives.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# response derivatives works
# first order response derivatives works

Code
print(yd)
Expand All @@ -18,3 +18,23 @@
10 10 x2 80.9 62.0 102. 0.480 0.478 0.185 0.537
# i 40 more rows

# second order response derivatives works

Code
print(yd)
Output
# 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 222. 124. 317. 0.480 0.478 0.00127 0.537
2 2 x2 279. 159. 414. 0.480 0.478 0.0216 0.537
3 3 x2 382. 282. 524. 0.480 0.478 0.0420 0.537
4 4 x2 496. 392. 636. 0.480 0.478 0.0624 0.537
5 5 x2 610. 483. 749. 0.480 0.478 0.0828 0.537
6 6 x2 681. 465. 893. 0.480 0.478 0.103 0.537
7 7 x2 606. 277. 922. 0.480 0.478 0.123 0.537
8 8 x2 356. -62.7 750. 0.480 0.478 0.144 0.537
9 9 x2 -141. -548. 251. 0.480 0.478 0.164 0.537
10 10 x2 -856. -1286. -478. 0.480 0.478 0.185 0.537
# i 40 more rows

0 comments on commit f9e2ec7

Please sign in to comment.