1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use String arguments for #search_convpath

* Otherwise it seems to SEGV on Windows, see
  f00bf24272 (commitcomment-30650955)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2018-09-26 09:32:09 +00:00
parent d3a9ebeb1c
commit 38989c7621

View file

@ -26,15 +26,9 @@ with_feature :encoding do
end
it "raises an Encoding::ConverterNotFoundError if no conversion path exists" do
# lambda do
# Encoding::Converter.search_convpath(
# Encoding::ASCII_8BIT, Encoding::Emacs_Mule)
# end.should raise_error(Encoding::ConverterNotFoundError)
begin
Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule)
rescue => e
e.class.should == Encoding::ConverterNotFoundError
end
lambda do
Encoding::Converter.search_convpath(Encoding::ASCII_8BIT.name, Encoding::Emacs_Mule.name)
end.should raise_error(Encoding::ConverterNotFoundError)
end
end
end