summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-24 07:48:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-24 07:48:51 +0000
commit84a5622646dd12550e57b16e46f272ab7d49a766 (patch)
tree9e83b12a047b15d3e17be454e55ead38883d2e78
parentf894022ba5764ebb0e325b45be5ed0217c99c4f7 (diff)
test_encodings.rb: remove BOM encodings
* test/csv/test_encodings.rb (TestCSV#each_encoding): encodings with BOM are external use only. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rwxr-xr-xtest/csv/test_encodings.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/csv/test_encodings.rb b/test/csv/test_encodings.rb
index 85ed21a..872914e 100755
--- a/test/csv/test_encodings.rb
+++ b/test/csv/test_encodings.rb
@@ -326,6 +326,7 @@ class TestCSV::Encodings < TestCSV
def each_encoding
Encoding.list.each do |encoding|
next if encoding.dummy? # skip "dummy" encodings
+ next if encoding == Encoding::UTF_32 or encoding == Encoding::UTF_16
yield encoding
end
end