Skip to content

Commit

Permalink
Another test added
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Dec 7, 2024
1 parent a92150d commit 17cff48
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/test/java/nom/tam/fits/BinaryTableNewTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import nom.tam.util.ComplexValue;
import nom.tam.util.FitsInputStream;
import nom.tam.util.Quantizer;
import nom.tam.util.TableException;

@SuppressWarnings({"javadoc", "deprecation"})
public class BinaryTableNewTest {
Expand Down Expand Up @@ -2103,14 +2104,18 @@ public void scalarBitTestException() throws Exception {
BinaryTable bt = new BinaryTable();
bt.addColumn(BinaryTable.ColumnDesc.createForFixedArrays(boolean.class, 2));
bt.addRowEntries(true);
// No exception
}

@Test(expected = IllegalArgumentException.class)
public void scalarLogicalTestException() throws Exception {
BinaryTable bt = new BinaryTable();
bt.addColumn(BinaryTable.ColumnDesc.createForFixedArrays(Boolean.class, 2));
bt.addRowEntries(true);
// No exception
}

@Test(expected = TableException.class)
public void addVariableSizeColumnException() throws Exception {
BinaryTable bt = new BinaryTable();
bt.addVariableSizeColumn(true);
}
}

0 comments on commit 17cff48

Please sign in to comment.