Skip to content

Commit

Permalink
Fix integration test for is_array(). (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwinter committed Jul 15, 2022
1 parent f173f9c commit 6c6d08f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"elementA" : "Test"
"123" : "Test"
}
{
"elementA" : [ "Test", "Another Test" ],
"elementB" : "Hello"
"123" : "Test",
"123" : "Another Test",
"test" : "Hello"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<collection xmlns="http://www.loc.gov/MARC21/slim">
<record>
<elementA>Test</elementA>
<controlfield tag="123">Test</controlfield>
</record>
<record>
<elementA>Test</elementA>
<elementA>Another Test</elementA>
<controlfield tag="123">Test</controlfield>
<controlfield tag="123">Another Test</controlfield>
</record>
</collection>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
if is_array("elementA")
add_field("elementB", "Hello")
if is_array("123")
add_field("test", "Hello")
end

0 comments on commit 6c6d08f

Please sign in to comment.