Skip to content

Commit

Permalink
Add Missing attribute value end quote test case
Browse files Browse the repository at this point in the history
  • Loading branch information
naitoh committed Mar 11, 2024
1 parent 77cb0dc commit 303dd15
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/test_core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,19 @@ def test_ticket_21
DETAIL
end

def test_ticket_21_part_2
src = '<foo bar="value/>'
exception = assert_raise(ParseException) do
Document.new(src)
end
assert_equal(<<-DETAIL, exception.to_s)
Missing attribute value end quote: <bar>: <">
Line: 1
Position: 17
Last 80 unconsumed characters:
DETAIL
end

def test_ticket_63
File.open(fixture_path("t63-1.xml")) {|f| Document.new(f) }
end
Expand Down

0 comments on commit 303dd15

Please sign in to comment.