check for negative length in CigarElement ctor #839
Merged
yfarjoun
merged 4 commits into
samtools:master
from
SHuang-Broad:sh_cigar_ele_arg_check
Apr 16, 2017
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
Jump to file or symbol
Failed to load files and symbols.
| @@ -0,0 +1,14 @@ | ||
| +package htsjdk.samtools.util; | ||
| + | ||
| + | ||
| +import htsjdk.samtools.CigarElement; | ||
| +import htsjdk.samtools.CigarOperator; | ||
| +import org.testng.annotations.Test; | ||
| + | ||
| +public class CigarElementUnitTest { | ||
| + | ||
| + @Test(expectedExceptions = IllegalArgumentException.class) | ||
| + public void testNegativeLengthCheck(){ | ||
| + final CigarElement element = new CigarElement(-1, CigarOperator.M); | ||
| + } | ||
| +} |