Skip to content

Commit

Permalink
Add and allow strncmpi tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Jul 12, 2024
1 parent 0ade393 commit 688d1c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,11 @@ double linCmtB(rx_solve *rx, unsigned int id, double t, int linCmt,

SEXP _rxode2_rxQr(SEXP);

SEXP _rxode2_parse_strncmpci(void);

void R_init_rxode2(DllInfo *info){
R_CallMethodDef callMethods[] = {
{"_rxode2_parse_strncmpci",(DL_FUNC) & _rxode2_parse_strncmpci, 0},
{"_rxode2_rxParseSetSilentErr", (DL_FUNC) &_rxode2_rxParseSetSilentErr, 1},
{"_rxode2_etRep_", (DL_FUNC) &_rxode2_etRep_, 7},
{"_rxode2_etSeq_", (DL_FUNC) &_rxode2_etSeq_, 11},
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/test-strncmpi.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test_that("test-strncmpi", {
skip_on_cran()
expect_equal(.Call(`_rxode2_parse_strncmpci`), 1L)
})

0 comments on commit 688d1c7

Please sign in to comment.