Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Banana1530 committed Jun 27, 2019
1 parent 323c221 commit c5ac406
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/testthat/test_arguments.R
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,19 @@ test_that("Correct match for PG loop settings", {
"EPS 1.21231e-05 MAX_ITER 12957000 EPS_inner 1.987e-06 MAX_ITER_inner 98728376"
)

expect_error(
moma_svd(
matrix(runif(12), 3, 4),
pg_setting = c(
EPS = 1.212312e-5,
MAX_ITER = 1.2957e+7,
EPS_inner = 1.987e-6,
MAX_ITER_inner = 98728376
)
),
"pg_setting penalty should be of class ‘moma_pg_setting’."
)

on.exit(MoMA::moma_logger_level(old_logger_level))
})

Expand Down

0 comments on commit c5ac406

Please sign in to comment.