Skip to content
Snippets Groups Projects
Commit 4411c817 authored by felmer's avatar felmer
Browse files

SE-163 more tests

SVN: 13427
parent 9a004c9c
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,22 @@ import org.testng.annotations.Test;
public class OccurrenceUtilTest extends AssertJUnit
{
@Test
public void test()
public void testNoCoverage()
{
check("[]", "");
check("[]", "abc", "xx");
check("[]", "xx");
check("[]", "abc");
}
@Test
public void testFullCoverage()
{
check("[[abc@0]]", "abc", "abc");
}
@Test
public void testPartialAndOverlappingCoverage()
{
check("[[ab@0], [abcd@4], [ab@13]]", "abc abcde hahab", "ab", "bcd");
check("[[ab@0], [abcd@4], [ab@13]]", "abc abcde hahab", "ab", "cd");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment