Skip to content

Commit eb08e14

Browse files
Fix test
1 parent 5e1f096 commit eb08e14

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/testthat/test-issue_108.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ test_that("issue 108", {
2222
)
2323

2424
# Works?
25-
beastier::is_beast2_input_file(output_filename)
25+
expect_true(beastier::is_beast2_input_file(output_filename))
2626

2727
# Really really Works?
28-
beast2_xml_lines <- readr::read_lines(output_filename)
29-
beastier::are_beast2_input_lines_deep(beast2_xml_lines)
28+
if (beastier::is_beast2_installed()) {
29+
beast2_xml_lines <- readr::read_lines(output_filename)
30+
expect_true(beastier::are_beast2_input_lines_deep(beast2_xml_lines))
31+
}
3032

3133
remove_beautier_folder()
3234
})

0 commit comments

Comments
 (0)