Skip to content

Commit cbb4981

Browse files
committed
fix tests
1 parent 0f9a879 commit cbb4981

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/multimodal-datasets-multiformulas-construction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ _size.(X_static)
4242
@test_throws AssertionError MLJ.fit!(machine(ModalDecisionTree(;), X_static, y), rows=train_idxs)
4343

4444
mach = MLJ.fit!(machine(ModalDecisionTree(; min_samples_leaf = 2), Float64.(X_static[:,Not(:ID)]), y), rows=train_idxs)
45-
@test depth(fitted_params(mach).tree) == 0
45+
@test depth(fitted_params(mach).tree) == 1
4646

4747
mach = MLJ.fit!(machine(ModalDecisionTree(; min_purity_increase=-Inf, min_samples_leaf = 1), Float64.(X_static[:,Not(:ID)]), y), rows=train_idxs)
4848
@test depth(fitted_params(mach).tree) > 0

test/other/parse-and-translate-restricted.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ tree_str10 = """
129129
✔ YES : 39/39 (conf = 1.0000)
130130
✘ NO_CLEAN_HISTORY_AND_LOW_PROBABILITY : 1/1 (conf = 1.0000)
131131
"""
132-
@test_broken tree10 = parse_tree(tree_str10; worldtypes = [SoleData.Interval], initconditions = [ModalDecisionTrees.start_without_world])
132+
@test_nowarn tree10 = parse_tree(tree_str10; worldtypes = [SoleData.Interval], initconditions = [ModalDecisionTrees.start_without_world])
133133

134134

135135

test/other/restricted2complete.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ branch = DTInternal(2, decision1, cls_leaf, cls_leaf)
1717
branch = DTInternal(2, decision2, cls_leaf, branch)
1818
branch = DTInternal(2, decision3, branch, cls_leaf)
1919

20-
@test_nowarn AbstractTrees.print_tree(branch)
20+
@test_throws ErrorException AbstractTrees.print_tree(branch)
2121

2222
branchpure = ModalDecisionTrees.translate(branch, [ModalDecisionTrees.StartWithoutWorld(), ModalDecisionTrees.StartWithoutWorld()])
2323
@test_nowarn AbstractTrees.print_tree(branchpure)

0 commit comments

Comments
 (0)