Skip to content
Snippets Groups Projects
Commit 92ddfaf1 authored by Florian Angerer's avatar Florian Angerer
Browse files

Added native test for Rf_isNull.

parent c5560a53
No related branches found
No related tags found
No related merge requests found
......@@ -191,4 +191,8 @@ rffi.createNativeConnection <- function() {
rffi.parseVector <- function(x) {
.Call('test_ParseVector', x);
}
rffi.isNull <- function(x) {
.Call('test_isNull', x);
}
\ No newline at end of file
......@@ -533,3 +533,7 @@ SEXP test_ParseVector(SEXP src) {
UNPROTECT(2);
return result;
}
Rboolean test_isNull(SEXP x) {
return Rf_isNull(x);
}
......@@ -105,3 +105,5 @@ extern SEXP test_readConnection(SEXP conn);
extern SEXP test_createNativeConnection(void);
extern SEXP test_ParseVector(SEXP src);
extern Rboolean test_isNUll(SEXP x);
......@@ -86,6 +86,11 @@ rffi.parseVector('1+')
for(i in seq(5000)) {
rffi.preserve_object()
}
for(i in seq(5000)) {
rffi.release_object()
}
\ No newline at end of file
}
# test isNull
rffi.isNull(NULL)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment