diff --git a/tests/testthat/test-check_beast2_path.R b/tests/testthat/test-check_beast2_path.R index 488aeb9..f2ab472 100644 --- a/tests/testthat/test-check_beast2_path.R +++ b/tests/testthat/test-check_beast2_path.R @@ -1,4 +1,10 @@ test_that("use", { + expect_silent( + check_beast2_path(get_beastier_path("some path that exists TODO")) + ) +}) + +test_that("abuse", { expect_error( check_beast2_path("abs.ent"), "File 'beast2_path' not found. Could not find file with path 'abs.ent'" diff --git a/tests/testthat/test-check_input_filename.R b/tests/testthat/test-check_input_filename.R new file mode 100644 index 0000000..6152382 --- /dev/null +++ b/tests/testthat/test-check_input_filename.R @@ -0,0 +1,5 @@ +test_that("use", { + expect_silent( + check_input_filename(get_beastier_path("beast2_example_output.log")) + ) +})