aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-02 01:47:30 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-02 01:47:30 +0900
commitc94cd8534afad86c75f2c7b4f4a2ab4ea2dc4837 (patch)
tree7d806565b7c1631c9bc07576aa926187c0de9a80 /spec/ruby/core
parentc0dc717c45fc3abc64a337c3481bc4555b675d87 (diff)
downloadruby-c94cd8534afad86c75f2c7b4f4a2ab4ea2dc4837.tar.gz
[Bug #19087] Fix an assertion of `String#to_c`
Diffstat (limited to 'spec/ruby/core')
-rw-r--r--spec/ruby/core/string/to_c_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/ruby/core/string/to_c_spec.rb b/spec/ruby/core/string/to_c_spec.rb
index 994bdf99f6..489af56a30 100644
--- a/spec/ruby/core/string/to_c_spec.rb
+++ b/spec/ruby/core/string/to_c_spec.rb
@@ -24,8 +24,10 @@ describe "String#to_c" do
'NaN'.to_c.should == Complex(0, 0)
end
- it "understands a sequence of _" do
- '7__9+4__0i'.to_c.should == Complex(79, 40)
+ ruby_bug "[Bug #19087]", ""..."3.2" do
+ it "disallows a sequence of _" do
+ '7__9+4__0i'.to_c.should == 7
+ end
end
it "allows null-byte" do