diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-02 17:40:29 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-02 17:40:29 +0100 |
commit | 0f20f3910b4dd65b090b99f4372bd5274ac7d86f (patch) | |
tree | c6a67b1465fb61b49ac51a3a23bccff36106558e /community/ruby-charlock_holmes/tests-fix-icu59.1.patch | |
parent | a1540bbfb837e6a8690f747e0bd5f2edfc6d57a4 (diff) | |
download | aports-0f20f3910b4dd65b090b99f4372bd5274ac7d86f.tar.bz2 aports-0f20f3910b4dd65b090b99f4372bd5274ac7d86f.tar.xz |
community/ruby-charlock_holmes: move from testing
Diffstat (limited to 'community/ruby-charlock_holmes/tests-fix-icu59.1.patch')
-rw-r--r-- | community/ruby-charlock_holmes/tests-fix-icu59.1.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/community/ruby-charlock_holmes/tests-fix-icu59.1.patch b/community/ruby-charlock_holmes/tests-fix-icu59.1.patch new file mode 100644 index 0000000000..3de390f333 --- /dev/null +++ b/community/ruby-charlock_holmes/tests-fix-icu59.1.patch @@ -0,0 +1,60 @@ +See https://github.com/brianmario/charlock_holmes/issues/115 + +--- a/test/encoding_detector_test.rb ++++ b/test/encoding_detector_test.rb +@@ -24,7 +24,7 @@ + assert detected_list.is_a? Array + + encoding_list = detected_list.map {|d| d[:encoding]}.sort +- assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-8'], encoding_list ++ assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-16BE', 'UTF-16LE', 'UTF-8'], encoding_list + end + + def test_class_level_detect_all_method_accepts_encoding_hint +@@ -33,7 +33,7 @@ + assert detected_list.is_a? Array + + encoding_list = detected_list.map {|d| d[:encoding]}.sort +- assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-8'], encoding_list ++ assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-16BE', 'UTF-16LE', 'UTF-8'], encoding_list + end + + def test_has_detect_method +@@ -54,7 +54,7 @@ + assert detected_list.is_a? Array + + encoding_list = detected_list.map {|d| d[:encoding]}.sort +- assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-8'], encoding_list ++ assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-16BE', 'UTF-16LE', 'UTF-8'], encoding_list + end + + def test_detect_all_accepts_encoding_hint +@@ -63,7 +63,7 @@ + assert detected_list.is_a? Array + + encoding_list = detected_list.map {|d| d[:encoding]}.sort +- assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-8'], encoding_list ++ assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-16BE', 'UTF-16LE', 'UTF-8'], encoding_list + end + + def test_strip_tags_flag +--- a/test/string_methods_test.rb ++++ b/test/string_methods_test.rb +@@ -26,7 +26,7 @@ + assert detected_list.is_a? Array + + encoding_list = detected_list.map {|d| d[:encoding]}.sort +- assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-8'], encoding_list ++ assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-16BE', 'UTF-16LE', 'UTF-8'], encoding_list + end + + def test_detect_encodings_accepts_encoding_hint_param +@@ -37,7 +37,7 @@ + assert detected_list.is_a? Array + + encoding_list = detected_list.map {|d| d[:encoding]}.sort +- assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-8'], encoding_list ++ assert_equal ['ISO-8859-1', 'ISO-8859-2', 'UTF-16BE', 'UTF-16LE', 'UTF-8'], encoding_list + end + + def test_returns_a_ruby_compatible_encoding_name |