-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up tests for #60. Good luck Jeff!
- Loading branch information
richelbilderbeek
committed
Sep 2, 2021
1 parent
ace6e75
commit 8dcab06
Showing
4 changed files
with
56 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
test_that("use", { | ||
skip("Fix Issue 60, Fix Issue #60") | ||
# Hi Jeff, here I suggest to add 'check_stack_size_kb', | ||
# you will probably get the same idea after | ||
# reading 'check_beast2_options_data_types' | ||
expect_silent(check_stack_size_kb(stack_size_kb = 1234)) | ||
expect_error( | ||
check_stack_size_kb(stack_size_kb = 0), | ||
"'stack_size_kb' must be one non-zero, finite and positive number" | ||
) | ||
expect_error( | ||
check_stack_size_kb(stack_size_kb = -1234), | ||
"'stack_size_kb' must be one non-zero, finite and positive number" | ||
) | ||
expect_error( | ||
check_stack_size_kb(stack_size_kb = NA), | ||
"'stack_size_kb' must be one non-zero, finite and positive number" | ||
) | ||
expect_error( | ||
check_stack_size_kb(stack_size_kb = "nonsense"), | ||
"'stack_size_kb' must be one non-zero, finite and positive number" | ||
) | ||
expect_error( | ||
check_stack_size_kb(stack_size_kb = NULL), | ||
"'stack_size_kb' must be one non-zero, finite and positive number" | ||
) | ||
expect_error( | ||
check_stack_size_kb(stack_size_kb = Inf), | ||
"'stack_size_kb' must be one non-zero, finite and positive number" | ||
) | ||
expect_error( | ||
check_stack_size_kb(stack_size_kb = c()), | ||
"'stack_size_kb' must be one non-zero, finite and positive number" | ||
) | ||
expect_error( | ||
check_stack_size_kb(stack_size_kb = c(1, 2)), | ||
"'stack_size_kb' must be one non-zero, finite and positive number" | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters