Skip to content

Commit

Permalink
Revised one test to avoid issue #82 (for now).
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarbo committed Jun 17, 2020
1 parent 9663183 commit 68038b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: mashr
Type: Package
Encoding: UTF-8
Title: Multivariate Adaptive Shrinkage
Version: 0.2.37
Version: 0.2.38
Date: 2020-06-16
Authors@R: c(person("Matthew","Stephens",role="aut"),
person("Sarah","Urbut",role="aut"),
Expand Down
5 changes: 4 additions & 1 deletion tests/testthat/test_cpp_computation.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ test_that("compare posterior computation R vs C++ in provided data of 100 X 5",
compute_posterior_matrices(data,Ulist,posterior_weights,
algorithm.version = "Rcpp",
mc.cores = 4))
expect_equal(out1, out2, tolerance=1e-5)
expect_equal(out1$PosteriorMean,out2$PosteriorMean,tolerance = 1e-5)
expect_equal(out1$NegativeProb,out2$NegativeProb,tolerance = 1e-5)
expect_equal(out1$lfdr,out2$lfdr,tolerance = 1e-5)
expect_equal(out1$lfsr,out2$lfsr,tolerance = 1e-5)
}
)

Expand Down

0 comments on commit 68038b4

Please sign in to comment.