@@ -35,9 +35,9 class PdfTest < ActiveSupport::TestCase | |||||
35 | txt_1 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_1, encoding) |
|
35 | txt_1 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_1, encoding) | |
36 | txt_2 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_2, encoding) |
|
36 | txt_2 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_2, encoding) | |
37 | txt_3 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_3, encoding) |
|
37 | txt_3 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_3, encoding) | |
38 | assert_equal "?\x91\xd4", txt_1 |
|
38 | assert_equal "?\x91\xd4".force_encoding("ASCII-8BIT"), txt_1 | |
39 | assert_equal "?\x91\xd4?", txt_2 |
|
39 | assert_equal "?\x91\xd4?".force_encoding("ASCII-8BIT"), txt_2 | |
40 | assert_equal "??\x91\xd4?", txt_3 |
|
40 | assert_equal "??\x91\xd4?".force_encoding("ASCII-8BIT"), txt_3 | |
41 | assert_equal "ASCII-8BIT", txt_1.encoding.to_s |
|
41 | assert_equal "ASCII-8BIT", txt_1.encoding.to_s | |
42 | assert_equal "ASCII-8BIT", txt_2.encoding.to_s |
|
42 | assert_equal "ASCII-8BIT", txt_2.encoding.to_s | |
43 | assert_equal "ASCII-8BIT", txt_3.encoding.to_s |
|
43 | assert_equal "ASCII-8BIT", txt_3.encoding.to_s |
General Comments 0
You need to be logged in to leave comments.
Login now