diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-09 01:14:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-09 22:11:44 +0900 |
commit | 11acb7f7bcf6e80e03cf83bba863b9b3f980fdca (patch) | |
tree | 4df39298309958cc2cc04b2e1296260268db664a /spec | |
parent | 181d4bee5e03a30596e78b2d7aa0396887a53881 (diff) | |
download | ruby-11acb7f7bcf6e80e03cf83bba863b9b3f980fdca.tar.gz |
[Bug #19167] Remove useless conversion of classes for special const
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/optional/capi/string_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/ruby/optional/capi/string_spec.rb b/spec/ruby/optional/capi/string_spec.rb index 0558fc9f7d..3a47fa9762 100644 --- a/spec/ruby/optional/capi/string_spec.rb +++ b/spec/ruby/optional/capi/string_spec.rb @@ -1040,9 +1040,11 @@ end @s.rb_sprintf3(true.class).should == s end - it "formats a TrueClass VALUE as 'true' if sign specified in format" do - s = 'Result: true.' - @s.rb_sprintf4(true.class).should == s + ruby_bug "#19167", ""..."3.2" do + it "formats a TrueClass VALUE as 'true' if sign specified in format" do + s = 'Result: TrueClass.' + @s.rb_sprintf4(true.class).should == s + end end it "truncates a string to a supplied precision if that is shorter than the string" do |