]> source.dussan.org Git - redmine.git/commitdiff
PDF: add test of replacing converting error characters in FPDF ANSI on Ruby 1.8 ...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 6 Apr 2011 10:50:24 +0000 (10:50 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 6 Apr 2011 10:50:24 +0000 (10:50 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5352 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/export/pdf_test.rb

index db7787a57e9ed320b07384781c771380fcd72f90..fa3a8498ed9b7c39c6fa43df469649718c27ac32 100644 (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