-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98554a8
commit d9846e4
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# test script for Ibex.matrix.R - testcases are NOT comprehensive! | ||
|
||
test_that("maTrex works", { | ||
data("ibex_example") | ||
|
||
set.seed(42) | ||
|
||
ibex.result1 <- Ibex.matrix(ibex_example, | ||
chains = "Heavy", | ||
method = "encoder", | ||
encoder.model = "VAE", | ||
encoder.input = "AF") | ||
|
||
expect_equal( | ||
ibex.result1, | ||
getdata("runIbex", "ibex.matrix_Heavy_VAE_AF") | ||
) | ||
|
||
ibex.result2 <- Ibex.matrix(ibex_example, | ||
chains = "Light", | ||
method = "encoder", | ||
encoder.model = "AE", | ||
encoder.input = "OHE") | ||
|
||
expect_equal( | ||
ibex.result2, | ||
getdata("runIbex", "ibex.matrix_Light_AE_OHE") | ||
) | ||
}) |
Binary file not shown.
Binary file not shown.