aboutsummaryrefslogtreecommitdiffstats
path: root/test/prism/encoding_test.rb
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-11-17 10:27:58 -0500
committergit <svn-admin@ruby-lang.org>2023-11-17 15:28:08 +0000
commitdb4303f953c85b2b59d3d1af177727240353c2e5 (patch)
tree87bbec38b2a0f473bc181589287d627a844f9d4e /test/prism/encoding_test.rb
parentc2f2090da6ef28764f7ba3cdeb984aec7243f4ca (diff)
downloadruby-db4303f953c85b2b59d3d1af177727240353c2e5.tar.gz
[ruby/prism] Never test locale encoding
https://github.com/ruby/prism/commit/f0f057b055
Diffstat (limited to 'test/prism/encoding_test.rb')
-rw-r--r--test/prism/encoding_test.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/prism/encoding_test.rb b/test/prism/encoding_test.rb
index 657b157e2f..a0303be536 100644
--- a/test/prism/encoding_test.rb
+++ b/test/prism/encoding_test.rb
@@ -70,10 +70,9 @@ module Prism
end
encodings.each do |encoding, range|
- names = encoding.names
- names.delete("locale") if encoding == Encoding::UTF_8 && RUBY_PLATFORM.include?("mingw")
+ encoding.names.each do |name|
+ next if name == "locale"
- names.each do |name|
define_method(:"test_encoding_#{name}") do
assert_encoding(encoding, name, range)
end