We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dfe16f commit 63d2cbcCopy full SHA for 63d2cbc
inst/unitTests/cpp/attributes.cpp
@@ -10,3 +10,10 @@ std::string comments_test( /// // "\""" some '"// more / // ///garbge"
10
) { // """
11
return msg;
12
}
13
+
14
+std::string parse_declaration_test(std::string msg) {
15
+ return msg;
16
+}
17
18
+// [[Rcpp::export]]
19
+std::string parse_declaration_test(std::string msg = "Parse function declaration");
inst/unitTests/runit.attributes.R
@@ -28,6 +28,10 @@ if (.runThisTest) {
28
comments_test(),
29
"Start a C++ line comment with the characters \"//\""
30
)
31
+ checkEquals(
32
+ parse_declaration_test(),
33
+ "Parse function declaration"
34
+ )
35
36
37
0 commit comments