Skip to content

Commit

Permalink
Changed the XML description of the test code to here document format.
Browse files Browse the repository at this point in the history
  • Loading branch information
naitoh authored Aug 21, 2024
1 parent 7a8f3e3 commit c636358
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/test_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ def entity(content)
end

def test_entity_replacement
source = '<!DOCTYPE foo [
<!ENTITY la "1234">
<!ENTITY lala "--&la;--">
<!ENTITY lalal "&la;&la;">
]><a><la>&la;</la><lala>&lala;</lala></a>'
source = <<-XML
<!DOCTYPE foo [
<!ENTITY la "1234">
<!ENTITY lala "--&la;--">
<!ENTITY lalal "&la;&la;">
]><a><la>&la;</la><lala>&lala;</lala></a>
XML

listener = MyListener.new
class << listener
Expand Down

0 comments on commit c636358

Please sign in to comment.