Skip to content

Commit

Permalink
Adjust test tolerance so it passes on no long double
Browse files Browse the repository at this point in the history
  • Loading branch information
kolesarm committed Mar 19, 2024
1 parent 01430e1 commit b45ea87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
- Windows Server 2022, R 4.3.3
- Ubuntu 22.04.4 LTS, R 4.3.3
- Ubuntu 20.04.4 LTS, R-devel


* win-builder, R-devel and R-release
* macbuilder macOS 13.3.1 (22E261) R4.3.0 Patched (2023-05-18 r84451)
* win-builder, R-devel and R-release
* Rhub
- Ubuntu Linux 20.04.1 LTS, R-release, GCC
- Debian Linux, R-devel, GCC, no long double
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_frd.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test_that("FRD with almost perfect first stage", {
T0=r0$coefficients$estimate)$coefficients
r2 <- RDHonest(voteshare~margin, M=M0[1], data=lees,
kern="triangular", opt.criterion="FLCI")$coefficients
expect_lt(max(abs(r1[2:8]-r2[2:8])), 3e-7)
expect_lt(max(abs(r1[2:8]-r2[2:8])), 1e-6)

set.seed(42)
df <- data.frame(y=lees$voteshare,
Expand Down

0 comments on commit b45ea87

Please sign in to comment.