Skip to content

Commit

Permalink
Fix some code stylings
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust committed Jun 6, 2024
1 parent 3640dcc commit 81f7227
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions test/test_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -420,29 +420,29 @@ def test_utf_16

class EachRecursiveTest < Test::Unit::TestCase
def test_each_recursive
xml_source = <<-XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root name="root">
<x name="0_2">
<x name="0_1">
<x name="0_0"/>
</x>
</x>
<x name="1_2">
<x name="1_1">
<x name="1_0"/>
</x>
</x>
<!-- comment -->
<![CDATA[ cdata ]]>
</root>
XML

expected_names = [
"root",
"0_2", "0_1", "0_0",
"1_2", "1_1", "1_0",
]
xml_source = <<~XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root name="root">
<x name="1_1">
<x name="1_2">
<x name="1_3" />
</x>
</x>
<x name="2_1">
<x name="2_2">
<x name="2_3" />
</x>
</x>
<!-- comment -->
<![CDATA[ cdata ]]>
</root>
XML

expected_names = %w[
root
1_1 1_2 1_3
2_1 2_2 2_3
]

document = REXML::Document.new(xml_source)

Expand Down

0 comments on commit 81f7227

Please sign in to comment.