Skip to content

Commit

Permalink
fix tests based on review & bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
dimalvovs committed Nov 14, 2024
2 parents a9d3e14 + 6cc9b37 commit c3fdb7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: projectR
Type: Package
Title: Functions for the projection of weights from PCA, CoGAPS, NMF,
correlation, and clustering
Version: 1.19.3
Version: 1.23.1
Author: Gaurav Sharma, Charles Shin, Jared Slosberg, Loyal Goff, Genevieve Stein-O'Brien
Authors@R: c(
person("Gaurav", "Sharma", role = c("aut")),
Expand Down
6 changes: 2 additions & 4 deletions tests/testthat/test_projectR.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ test_that("projection works on sparse data matrix", {

pdense <- projectR(dense, loadings)
psparse <- projectR(sparse, loadings)
expect_identical(projectR(dense, loadings),
projectR(sparse, loadings))
expect_identical(pdense, psparse)
})

test_that("projection works on sparse data matrix with full=TRUE", {
Expand All @@ -224,6 +223,5 @@ test_that("projection works on sparse data matrix with full=TRUE", {

pdense <- projectR(dense, loadings, full=TRUE)
psparse <- projectR(sparse, loadings, full=TRUE)
expect_identical(projectR(dense, loadings),
projectR(sparse, loadings))
expect_identical(pdense, psparse)
})

0 comments on commit c3fdb7a

Please sign in to comment.