We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba24c52 commit 7868d8dCopy full SHA for 7868d8d
jvm-packages/xgboost4j/src/test/java/ml/dmlc/xgboost4j/java/DMatrixTest.java
@@ -75,11 +75,13 @@ public void testCreateFromDataIteratorWithDiffFeatureSize() throws XGBoostError
75
blist.add(p);
76
labelall.add(p.label());
77
}
78
+ boolean success = true;
79
try {
80
DMatrix dmat = new DMatrix(blist.iterator(), null);
81
} catch (XGBoostError e) {
-
82
+ success = false;
83
84
+ TestCase.assertTrue(success == false);
85
86
87
@Test
0 commit comments