Skip to content

Commit

Permalink
Merge pull request #237 from jr-leary7/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jr-leary7 authored Oct 5, 2024
2 parents d1eb84d + e6ef946 commit c53eea5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

+ Minor bug fixes.
+ Improved matrix inversion through judicious usage of C++.
+ Added S3 method `summary.scLANE()` to be used on output from `testDynamic()`.

# Changes in version 0.8.3

Expand Down
7 changes: 7 additions & 0 deletions tests/testthat/test_scLANE.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ withr::with_output_sink(tempfile(), {
id.vec = sim_data$subject,
n.cores = 2L,
verbose = FALSE)
# S3 summary method
scLANE_summary <- summary(glm_gene_stats)
# get results tables overall
glm_test_results <- getResultsDE(glm_gene_stats, n.cores = 1L)
gee_test_results <- getResultsDE(gee_gene_stats)
Expand Down Expand Up @@ -308,6 +310,11 @@ test_that("testDynamic() output", {
expect_gt(sum(purrr::map_lgl(glmm_gene_stats, \(x) x$Lineage_A$Model_Status == "MARGE model OK, null model OK")), 0)
})

test_that("summary() output", {
expect_s3_class(scLANE_summary, "summary.scLANE")
expect_length(scLANE_summary, 5)
})

test_that("getResultsDE() output", {
expect_s3_class(glm_test_results, "data.frame")
expect_s3_class(gee_test_results, "data.frame")
Expand Down

0 comments on commit c53eea5

Please sign in to comment.