Skip to content

Commit

Permalink
Update test_specify.R
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwang15 committed Jul 15, 2024
1 parent 3cf0f80 commit ce7db40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inst/tinytest/test_specify.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ spec = specify_bsvarSIGN$new(oil)
expect_identical(class(spec)[1],
"BSVARSIGN")

expect_identical(dim(spec$data_matrices$Y)[1],
dim(spec$data_matrices$X)[1])
expect_identical(dim(spec$data_matrices$Y)[2],
dim(spec$data_matrices$X)[2])

expect_identical(length(spec$data_matrices$get_data_matrices()),
2L)

expect_identical(dim(spec$prior$B)[1], dim(spec$data_matrices$X)[2])
expect_identical(dim(spec$prior$A)[2], dim(spec$data_matrices$X)[1])

expect_identical(class(spec$prior$get_prior()),
"list")
Expand Down Expand Up @@ -51,13 +51,13 @@ spec = specify_bsvarSIGN$new(oil,
expect_identical(class(spec)[1],
"BSVARSIGN")

expect_identical(dim(spec$data_matrices$Y)[1],
dim(spec$data_matrices$X)[1])
expect_identical(dim(spec$data_matrices$Y)[2],
dim(spec$data_matrices$X)[2])

expect_identical(length(spec$data_matrices$get_data_matrices()),
2L)

expect_identical(dim(spec$prior$B)[1], dim(spec$data_matrices$X)[2])
expect_identical(dim(spec$prior$A)[2], dim(spec$data_matrices$X)[1])

expect_identical(class(spec$prior$get_prior()),
"list")
Expand Down

0 comments on commit ce7db40

Please sign in to comment.