Skip to content

Commit

Permalink
Add single item test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Sep 7, 2024
1 parent 3b29dd5 commit fa9a742
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/testthat/test-piping-ini.R
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,16 @@ test_that("ini(diag) tests", {
lfun ~ 4
}))

tmp <- mod2 %>% ini(diag(lvc))

expect_equal(tmp$omega,
lotri({
lfun ~ 4
lcl ~ c(0.1, 1)
lka ~ c(-0.1, 0.01, 0.45)
lvc ~ 3.45
}))

mod <- function() {
ini({
lka ~ 0.45
Expand Down

0 comments on commit fa9a742

Please sign in to comment.