PDF: add test of replacing converting error characters in FPDF ANSI on Ruby 1.8 (#61).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5352 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-04-06 10:50:24 +00:00
parent 2f2cdfd96a
commit 5eea9ec61a
1 changed files with 7 additions and 0 deletions

View File

@ -80,6 +80,13 @@ class PdfTest < ActiveSupport::TestCase
pdf.fix_text_encoding(utf8_txt_2)
assert_equal "??\x91\xd4?",
pdf.fix_text_encoding(utf8_txt_3)
else
assert_equal "???\x91\xd4",
pdf.fix_text_encoding(utf8_txt_1)
assert_equal "???\x91\xd4???",
pdf.fix_text_encoding(utf8_txt_2)
assert_equal "??????\x91\xd4???",
pdf.fix_text_encoding(utf8_txt_3)
end
end
end