Skip to content

Commit

Permalink
adjusting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philipdelff committed Jan 17, 2025
1 parent 38425b4 commit 3c2b7ca
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/testData/nonmem/xgxr133.mod
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $THETA (.1) ; 1 : LTVKA ; Absorption rate [1/h] ; log
$THETA (3) ; 2 : LTVV2 ; Central volume [L] ; log
$THETA (1) ; 3 : LTVCL ; Clearance [L/h] ; log
$THETA (4) ; 4 : LTVV3 ; Peripheral volume [L] ; log
$THETA (-1) ; 5 : LTVQ ; Intercomparmental clearance [L/h] ; log
$THETA (-10,-1) ; 5 : LTVQ ; Intercomparmental clearance [L/h] ; log
$THETA .1 ; 6 : AGEEFF ; Age effect on clearance []; log

$OMEGA 0 FIX ; 1 : BSV.KA ; KA Between-subject variability
Expand Down
Binary file modified tests/testthat/testReference/NMreadInits_02.rds
Binary file not shown.
Binary file modified tests/testthat/testReference/NMreadInits_03.rds
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/testthat/test_NMreadInits.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test_that("basic",{
lines <- readLines(file.mod)
res1 <- NMreadInits(lines=lines,return="all")

res1$lines[grepl("^ +$",text.before),text.before:=""]
## res1$lines[grepl("^ +$",text.before),text.before:=""]

## cat(paste(res1$lines$text.before,collapse=":"),"\n")
## cat(paste(readRDS(fileRef)$lines$text.before,collapse=":"),"\n")
Expand Down Expand Up @@ -42,7 +42,7 @@ $THETA
(0,0.1) ; THE1 - 30) 1st theta
(0,4.2) ; THE2 - 31) 2nd theta
$OMEGA 0.08 ; IIV.TH1 ; 1 ;IIV
$OMEGA BLOCK(1)
$OMEGA BLOCK(1)
0.547465 ; IOV.TH1 ; 2 ;IOV
$OMEGA BLOCK(1) SAME
$OMEGA BLOCK(1) SAME")
Expand Down

0 comments on commit 3c2b7ca

Please sign in to comment.