Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing both validation errors #927

Merged
merged 1 commit into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/testthat/_snaps/summarize_ancova.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
Code
res
Output
Species emmean SE df lower.CL upper.CL
setosa 6.154823 0.3370913 143 5.488497 6.821149
versicolor 5.717409 0.0668085 143 5.585349 5.849469
virginica 5.406377 0.1487946 143 5.112255 5.700498

Confidence level used: 0.95
# A tibble: 3 x 6
Species estimate std.error df conf.low conf.high
<chr> <dbl> <dbl> <dbl> <dbl> <dbl>
1 setosa 6.15 0.337 143 5.49 6.82
2 versicolor 5.72 0.0668 143 5.59 5.85
3 virginica 5.41 0.149 143 5.11 5.70

# s_ancova works with healthy input

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-summarize_ancova.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ testthat::test_that("h_ancova works with healthy input", {
) %>%
as.data.frame()

res <- testthat::expect_silent(result)
res <- testthat::expect_silent(broom::tidy(result))
testthat::expect_snapshot(res)
})

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-summarize_num_patients.R
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,5 @@ testthat::test_that("analyze_num_patients works well for pagination", {
"Number of events"
)
)
testthat::expect_identical(to_string_matrix(pag_result[[4]])[6, 1], "11")
testthat::expect_identical(to_string_matrix(pag_result[[3]])[6, 1], "17")
})