Skip to content

Commit a05c9af

Browse files
committed
Fixed R unit tests
1 parent 9e9de2a commit a05c9af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/R/testthat/test-dataset.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ test_that("RandomEffectsDataset can be constructed and updated", {
5353
new_rfx_basis <- matrix(runif(n * num_basis), ncol = num_basis)
5454
new_variance_weights <- runif(n)
5555
expect_no_error(
56-
rfx_dataset$update_basis(new_basis)
56+
rfx_dataset$update_basis(new_rfx_basis)
5757
)
5858
expect_no_error(
5959
rfx_dataset$update_variance_weights(new_variance_weights)
6060
)
6161

6262
# Check that we recover the correct data through get_group_labels, get_basis, and get_variance_weights
6363
expect_equal(group_ids, rfx_dataset$get_group_labels())
64-
expect_equal(new_basis, rfx_dataset$get_basis())
64+
expect_equal(new_rfx_basis, rfx_dataset$get_basis())
6565
expect_equal(new_variance_weights, rfx_dataset$get_variance_weights())
6666
})

0 commit comments

Comments
 (0)