Skip to content

Commit

Permalink
Use add_array instead of set_array in integration tests #374
Browse files Browse the repository at this point in the history
As a preliminary work for #309 since set_array will change its behaviour but add_array will keep the functionality.
  • Loading branch information
TobiasNx committed Oct 16, 2024
1 parent a8e45e9 commit 19051fb
Show file tree
Hide file tree
Showing 66 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
put_map("rswk-indicator", s: "SubjectHeading")

if exists("6890?")
set_array("subject[].$append.type[]", "ComplexSubject")
set_array("subject[].$last.label")
set_array("subject[].$last.componentList[]")
add_array("subject[].$append.type[]", "ComplexSubject")
add_array("subject[].$last.label")
add_array("subject[].$last.componentList[]")
do list(path: "6890?", "var": "$i")
set_array("subject[].$last.componentList[].$append.type[]")
add_array("subject[].$last.componentList[].$append.type[]")
do list(path: "$i.D", "var": "$k")
copy_field("$k", "subject[].$last.componentList[].$last.type[].$append")
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set_array("RSWK[]")
add_array("RSWK[]")
do list(path: "650??", "var": "$i")
copy_field("$i.a", "RSWK[].$append.subjectTopicName")
copy_field("$i.v", "RSWK[].$last.subjectGenre")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_array("animals_2[].$append.test[]", "test", "test", "test")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_array("animals[].*.test[]", "test")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_array("animals_2[].$last.test[]", "test", "test")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_array("object.test[]", "dog", "cat", "bird")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_array("object.test[]", "dog")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_array("object.test[]")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_array("test[]", "dog", "cat", "bird")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_array("test[]", "dog", "cat", "bird")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_array("test[]", "dog")
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_array("test[]")
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
set_array("test[]", "dog", "cat", "bird")
add_array("test[]", "dog", "cat", "bird")
move_field("test[]", "animals[].1.test[]")
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
set_array("test[]", "dog")
add_array("test[]", "dog")
move_field("test[]", "animals[].1.test[]")
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
set_array("test[]")
add_array("test[]")
move_field("test[]", "animals[].1.test[]")
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set_array("test[]")
add_array("test[]")
copy_field("key", "test[].1")
copy_field("key_2", "test[].2")
copy_field("key_3", "test[].3")

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 19051fb

Please sign in to comment.