X-Git-Url: https://git.auder.net/?p=morpheus.git;a=blobdiff_plain;f=pkg%2Ftests%2Ftestthat%2Ftest-computeMu.R;h=c1fd4f910e5c63fae03499eec47e70244694cd0a;hp=ba1de74dcaf6fb657c5c0c6797256b5a7d6149cc;hb=ab35f6102896a49e86e853262c0650faa2931638;hpb=2b3a6af5c55ac121405e3a8da721626ddf46b28b diff --git a/pkg/tests/testthat/test-computeMu.R b/pkg/tests/testthat/test-computeMu.R index ba1de74..c1fd4f9 100644 --- a/pkg/tests/testthat/test-computeMu.R +++ b/pkg/tests/testthat/test-computeMu.R @@ -1,5 +1,3 @@ -context("computeMu") - test_that("on input of sufficient size, β/||β|| is estimated accurately enough", { n <- 100000 @@ -28,8 +26,8 @@ test_that("on input of sufficient size, β/||β|| is estimated accurately enough diff_norm <- norm(μ_ref - μ_aligned) cat(diff_norm,"\n") - #NOTE: 0.5 is loose threshold, but values around 0.3 are expected... - expect_that( diff_norm, is_less_than(0.5) ) + # NOTE: 0.5 is loose threshold, but values around 0.3 are expected... + expect_lt( diff_norm, 0.5 ) } } })