Skip to content

Commit ea40528

Browse files
committed
Add new todo.txt and adjust test for #377
1 parent d18a503 commit ea40528

File tree

3 files changed

+16
-1
lines changed
  • metafix/src/test/resources/org/metafacture/metafix/integration/method/fromXml/toJson/replace_allInOptionalSubfieldOfRepeatedObjectsWithAsterisk

3 files changed

+16
-1
lines changed

metafix/src/test/resources/org/metafacture/metafix/integration/method/fromXml/toJson/replace_allInOptionalSubfieldOfRepeatedObjectsWithAsterisk/expected.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@
44
}, {
55
"subjectTopicName" : "Nonprofit organizations",
66
"subjectGenre" : "Case studies"
7+
} ],
8+
"rswk" : [ {
9+
"subjectTopicName" : "Nonprofit organizations"
10+
}, {
11+
"subjectTopicName" : "Nonprofit organizations",
12+
"subjectGenre" : "Case studies"
713
} ]
814
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
set_array("RSWK[]")
12
do list(path: "650??", "var": "$i")
23
copy_field("$i.a", "RSWK[].$append.subjectTopicName")
34
copy_field("$i.v", "RSWK[].$last.subjectGenre")
45
end
56
replace_all("RSWK[].*.subjectGenre", "[.]$", "")
6-
retain("RSWK[]")
7+
8+
do list(path: "650??", "var": "$i")
9+
copy_field("$i.a", "rswk[].$append.subjectTopicName")
10+
copy_field("$i.v", "rswk[].$last.subjectGenre")
11+
end
12+
replace_all("rswk[].*.subjectGenre", "[.]$", "")
13+
14+
retain("RSWK[]","rswk[]")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See #377 . This behaviour seems to be undetected or new after #369

0 commit comments

Comments
 (0)