Skip to content

Commit

Permalink
Add reproduction for JRuby regression on ISO-8859-1 content
Browse files Browse the repository at this point in the history
  • Loading branch information
thbar committed Sep 8, 2020
1 parent bd638ad commit 386ebcb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/test_iso.rb
@@ -0,0 +1,15 @@
require "helper"

class TestISO < Nokogiri::TestCase
def test_iso_content_not_lacking_accents
data = IO.binread('test/files/iso-8859-1.xml')
document = Nokogiri::XML(data)
assert_equal "Accepté", document.at('DATA').text
end

def test_iso_content_not_truncated
data = IO.binread('test/files/iso-8859-1.xml')
document = Nokogiri::XML(data)
assert_equal 2, document.search('DATA').count
end
end

0 comments on commit 386ebcb

Please sign in to comment.