summaryrefslogtreecommitdiff
path: root/tests/testthat/test-simulate_data.R
blob: 9d0cba37bd9ef2161f6bfc4994377a53e5a852d4 (plain)
1
2
3
4
test_that("Returns a true sparse correlation matrix", {
	X_obj <- simulate_data(n = 10, p = 10, rho = 0)
	expect_equal(X_obj$S, diag(nrow = 10))
})