Skip to content

Commit

Permalink
add a test for the warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dajmcdon committed Nov 5, 2024
1 parent ae1c40e commit 1391c95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-tvdenoising.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ test_that("tvdenoising works correctly with no weights", {
expect_type(result, "double")
expect_length(result, length(y))
expect_equal(result, expected_result)
expect_warning(result2 <- tvdenoising(y, lambda, 2))
expect_equal(result2, expected_result)
})

test_that("tvdenoising works correctly with weights", {
Expand Down

0 comments on commit 1391c95

Please sign in to comment.