Skip to content

Commit

Permalink
issue #199: Group results in completeness
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Dec 19, 2022
1 parent dc8b6e5 commit 307d830
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.junit.Test;

import java.util.Arrays;
import java.util.List;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
Expand Down Expand Up @@ -78,6 +79,7 @@ public void occurenceAsteriks_withsubfield() {
assertEquals(Subfields.Type.ALL, path.getSubfields().getType());
assertEquals("*", path.getSubfields().getInput());
assertEquals(Arrays.asList("*"), path.getSubfields().getCodes());
assertEquals(Arrays.asList("*"), path.getSubfieldCodes());
}

@Test
Expand All @@ -90,6 +92,7 @@ public void subfieldsTag() {
assertEquals(Subfields.Type.SINGLE, path.getSubfields().getType());
assertEquals("a", path.getSubfields().getInput());
assertEquals(Arrays.asList("a"), path.getSubfields().getCodes());
assertEquals(Arrays.asList("a"), path.getSubfieldCodes());
}

@Test
Expand All @@ -102,6 +105,7 @@ public void subfieldsTag_multiple() {
assertEquals(Subfields.Type.MULTI, path.getSubfields().getType());
assertEquals("abc", path.getSubfields().getInput());
assertEquals(Arrays.asList("a", "b", "c"), path.getSubfields().getCodes());
assertEquals(List.of("a", "b", "c"), path.getSubfieldCodes());
}

@Test
Expand All @@ -114,6 +118,7 @@ public void subfieldsTag_multiple_mixed() {
assertEquals(Subfields.Type.MULTI, path.getSubfields().getType());
assertEquals("aBc", path.getSubfields().getInput());
assertEquals(Arrays.asList("a", "B", "c"), path.getSubfields().getCodes());
assertEquals(List.of("a", "B", "c"), path.getSubfieldCodes());
}

@Test
Expand Down

0 comments on commit 307d830

Please sign in to comment.