Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
Fix tests based on feedback on 248d18d (see #95, #102)
Browse files Browse the repository at this point in the history
Co-authored-by: Jens Wille <[email protected]>
  • Loading branch information
fsteeg and blackwinter committed Feb 1, 2022
1 parent 6f25fa9 commit ca2ffb8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ public void doListIndexedArray() {
}

@Test
@Disabled("Should output indexed-array style structure due to `author[].$append.name`")
public void doListIndexedArrayToArrayOfObjects() {
MetafixTestHelpers.assertFix(streamReceiver, Arrays.asList(
"set_array('author[]')",
"do list('path': 'name[]', 'var': 'n')",
" copy_field('n', 'author[].$append.name')",
"end",
Expand All @@ -369,7 +369,7 @@ public void doListIndexedArrayToArrayOfObjects() {
i.startRecord("1");
i.startEntity("name[]");
i.literal("1", "A University");
i.literal("2", "Max ");
i.literal("2", "Max");
i.endEntity();
i.endRecord();
}, (o, f) -> {
Expand Down Expand Up @@ -414,9 +414,9 @@ public void doListIndexedArrayOfObjects() {
}

@Test
@Disabled("Should output indexed-array style structure due to `author[].$append.name`")
public void doListIndexedArrayOfObjectsToArrayOfObjects() {
MetafixTestHelpers.assertFix(streamReceiver, Arrays.asList(
"set_array('author[]')",
"do list('path': 'name[]', 'var': 'n')",
" copy_field('n.name', 'author[].$append.name')",
"end",
Expand All @@ -425,10 +425,10 @@ public void doListIndexedArrayOfObjectsToArrayOfObjects() {
i.startRecord("1");
i.startEntity("name[]");
i.startEntity("1");
i.literal("name", " A University");
i.literal("name", "A University");
i.endEntity();
i.startEntity("2");
i.literal("name", "Max ");
i.literal("name", "Max");
i.endEntity();
i.endEntity();
i.endRecord();
Expand Down

0 comments on commit ca2ffb8

Please sign in to comment.