Skip to content

Commit

Permalink
ICEed again.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfbiedert committed Aug 11, 2018
1 parent 344c31f commit bee2842
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/svm_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ macro_rules! test_model {
);
assert_eq!(
problem_7.result(),
SVMResult::Label($libsvm_prob[1]),
SVMResult::Label($libsvm_prob[1]), // REMOVING SVMResult::Label() around here prevents ICE
// Only this particular item seems to trigger it.
"predict_probability(problem_7)"
);
}
Expand All @@ -74,7 +75,8 @@ mod svm_class {
test_model!(m_csvm_rbf_prob, "m_csvm_rbf_prob.libsvm", true, [0, 7], [2, 7]); // apparently `libSVM` gets this wrong
test_model!(m_csvm_sigmoid_prob, "m_csvm_sigmoid_prob.libsvm", true, [0, 5], [0, 7]); // apparently `libSVM` gets this wrong

// test_model!(m_csvm_linear, "m_csvm_linear.libsvm", false, [0, 7], []);
// ENABLING THIS LINE TRIGGERS IT:
test_model!(m_csvm_linear, "m_csvm_linear.libsvm", false, [0, 7], []);
// test_model!(m_csvm_poly, "m_csvm_poly.libsvm", false, [0, 7], []);
// test_model!(m_csvm_rbf, "m_csvm_rbf.libsvm", false, [0, 7], []);
// test_model!(m_csvm_sigmoid, "m_csvm_sigmoid.libsvm", false, [0, 5], []);
Expand Down

0 comments on commit bee2842

Please sign in to comment.