Skip to content

Commit

Permalink
debugging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philipdelff committed Jan 16, 2025
1 parent f07cb4c commit 9b5fccd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file modified tests/testthat/testReference/NMreadInits_01.rds
Binary file not shown.
8 changes: 5 additions & 3 deletions tests/testthat/test_NMreadInits.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ test_that("basic",{
file.mod <- "testData/nonmem/xgxr032.mod"

NMdataConf(reset=T)
## NMdataConf(as.fun="data.table")
NMdataConf(as.fun="data.table")

lines <- readLines(file.mod)
res1 <- NMreadInits(lines=lines,return="all")

cat(paste(res1$lines$text.before,collapse=":"),"\n")
cat(paste(readRDS(fileRef)$lines$text.before,collapse=":"),"\n")
res1$lines[grepl("^ +$",text.before),text.before:=""]

## cat(paste(res1$lines$text.before,collapse=":"),"\n")
## cat(paste(readRDS(fileRef)$lines$text.before,collapse=":"),"\n")

expect_equal_to_reference(res1,fileRef)

Expand Down

0 comments on commit 9b5fccd

Please sign in to comment.