Skip to content

Commit 717fb9f

Browse files
ppavlidisarteymix
authored andcommitted
improve test
1 parent 56dec9b commit 717fb9f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/ubic/basecode/dataStructure/matrix/DenseDoubleMatrixTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package ubic.basecode.dataStructure.matrix;
1616

1717
import static org.junit.Assert.assertEquals;
18+
import static org.junit.Assert.assertTrue;
1819

1920
import org.junit.Before;
2021
import org.junit.Test;
@@ -46,6 +47,8 @@ public void testConstructFromArray() {
4647
DenseDoubleMatrix<String, String> actual = new DenseDoubleMatrix<String, String>( testdata.asArray() );
4748
double[][] tt = testdata.asArray();
4849

50+
assertTrue(testdata.rows() > 0);
51+
assertTrue(actual.rows() > 0);
4952
for ( int i = 0; i < tt.length; i++ ) {
5053
int len = tt[i].length;
5154
for ( int j = 0; j < len; j++ ) {

0 commit comments

Comments
 (0)