Skip to content

Commit

Permalink
deprecated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cebarboza committed Oct 18, 2024
1 parent a829d4a commit 3439f7b
Show file tree
Hide file tree
Showing 5 changed files with 437 additions and 13 deletions.
415 changes: 415 additions & 0 deletions tests/testthat/deprecated_tests/README.html

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions tests/testthat/deprecated_tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## test-MainFunctions.R

* Initial testing Explore. No longer compatible with new results format.

## test-runExplore.R

* Testing function later used in current tests.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,4 @@ test_that("Test EndRulelength 5", {

})

test_that("getDataSetPath list cases", {

dataset <- "iris"
data_path <- getDataSetPath(dataset = dataset)
expect_equal(data_path$class_feature, "'class'")

dataset <- "binary_3"
data_path <- getDataSetPath(dataset = dataset)
expect_equal(data_path$class_feature, "'outcomeCount'")

dataset <- "mix_4_ordered"
expect_error(getDataSetPath(dataset = dataset))

})
15 changes: 15 additions & 0 deletions tests/testthat/test-HelperFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,18 @@ test_that("Convert logical to 0/1", {
train_data <- convert_logical(train_data)
expect_true(all(sapply(train_data, function(col) all(col %in% c(0, 1)))))
})

test_that("getDataSetPath list cases", {

dataset <- "iris"
data_path <- getDataSetPath(dataset = dataset)
expect_equal(data_path$class_feature, "'class'")

dataset <- "binary_3"
data_path <- getDataSetPath(dataset = dataset)
expect_equal(data_path$class_feature, "'outcomeCount'")

dataset <- "mix_4_ordered"
expect_error(getDataSetPath(dataset = dataset))

})

0 comments on commit 3439f7b

Please sign in to comment.