Skip to content

Commit bee2842

Browse files
committed
ICEed again.
1 parent 344c31f commit bee2842

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/svm_class.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ macro_rules! test_model {
5252
);
5353
assert_eq!(
5454
problem_7.result(),
55-
SVMResult::Label($libsvm_prob[1]),
55+
SVMResult::Label($libsvm_prob[1]), // REMOVING SVMResult::Label() around here prevents ICE
56+
// Only this particular item seems to trigger it.
5657
"predict_probability(problem_7)"
5758
);
5859
}
@@ -74,7 +75,8 @@ mod svm_class {
7475
test_model!(m_csvm_rbf_prob, "m_csvm_rbf_prob.libsvm", true, [0, 7], [2, 7]); // apparently `libSVM` gets this wrong
7576
test_model!(m_csvm_sigmoid_prob, "m_csvm_sigmoid_prob.libsvm", true, [0, 5], [0, 7]); // apparently `libSVM` gets this wrong
7677

77-
// test_model!(m_csvm_linear, "m_csvm_linear.libsvm", false, [0, 7], []);
78+
// ENABLING THIS LINE TRIGGERS IT:
79+
test_model!(m_csvm_linear, "m_csvm_linear.libsvm", false, [0, 7], []);
7880
// test_model!(m_csvm_poly, "m_csvm_poly.libsvm", false, [0, 7], []);
7981
// test_model!(m_csvm_rbf, "m_csvm_rbf.libsvm", false, [0, 7], []);
8082
// test_model!(m_csvm_sigmoid, "m_csvm_sigmoid.libsvm", false, [0, 5], []);

0 commit comments

Comments
 (0)