Skip to content

Commit 37c390e

Browse files
committed
add test for #1026 / #1027: cppFunction with non-exist pkg
1 parent a798ef3 commit 37c390e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656

5757
* R/unitTests.R: Removed as tied to RUnit setuo
5858

59+
* inst/tinytest/test_attributes.R: Added test for error with
60+
non-existing package in cppFunction
61+
5962
2019-11-23 Dirk Eddelbuettel <[email protected]>
6063

6164
* docker/ci/Dockerfile: Add tinytest to ci Docker image

inst/tinytest/test_attributes.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ expect_equal(parse_default_values_with_chr_parenthesis(),
3838

3939
expect_equal(parse_default_values_with_chr_backslash(),
4040
"Parse function header with backslash inside default char values.")
41+
42+
## cf issue #1026 and pr #1027
43+
expect_error(cppFunction("bool foo() { return false; }", depends = "fakepkg"))

0 commit comments

Comments
 (0)