Skip to content

Commit

Permalink
corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
cebarboza committed Oct 18, 2024
1 parent 2782f0d commit aa7f52c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
2 changes: 1 addition & 1 deletion R/testExplore.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ testExplore <- function(dataset = "iris",
Specificity = 0,
PrintSettings = TRUE,
PrintPerformance = TRUE,
Subsumption = TRUE,
Subsumption = FALSE,
BranchBound = TRUE,
Parallel = FALSE,
PrintCutoffSets = TRUE,
Expand Down
35 changes: 15 additions & 20 deletions tests/testthat/test-testExplore.R
Original file line number Diff line number Diff line change
Expand Up @@ -197,30 +197,25 @@ test_that("Test continuous_4_small", {

test_that("Test continuous_4", {

# cand_models_continuous_4_1 <- testExplore(dataset = "continuous_4",
# StartRulelength = 1,
# EndRulelength = 1,
# BinaryReduction = FALSE)
# # FAIL: `actual`: 64 `expected`: 80
# expect_length(cand_models_continuous_4_1, 80)
cand_models_continuous_4_1 <- testExplore(dataset = "continuous_4",
StartRulelength = 1,
EndRulelength = 1,
BinaryReduction = FALSE)
expect_length(cand_models_continuous_4_1, 80)


# TEST CRASHES R
# cand_models_continuous_4_2 <- testExplore(dataset = "continuous_4",
# StartRulelength = 2,
# EndRulelength = 2,
# BinaryReduction = FALSE)
# # Expected result is 5840
# expect_length(cand_models_continuous_4_2, 254)
cand_models_continuous_4_2 <- testExplore(dataset = "continuous_4",
StartRulelength = 2,
EndRulelength = 2,
BinaryReduction = FALSE)
# Expected result is 5160
expect_length(cand_models_continuous_4_2, 5160)


# TEST CRASHES R
# cand_models_continuous_4_3 <- testExplore(dataset = "continuous_4",
# StartRulelength = 3,
# cand_models_continuous_4_3 <- testExplore(dataset = "continuous_4",
# StartRulelength = 3,
# EndRulelength = 3,
# BinaryReduction = FALSE)
# # Expected result is 5840
# expect_length(cand_models_continuous_4_3, 1134)
# # Expected result is 235608
# expect_length(cand_models_continuous_4_3, 235608)

})

Expand Down

0 comments on commit aa7f52c

Please sign in to comment.