diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-10-29 13:56:58 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-10-29 14:26:39 +0900 |
| commit | 103e91a06376c98e8d1cd876dc7cdb8cc6e087ef (patch) | |
| tree | 13ec1f7b717d04dc89cecc250ad6ef8746a2e132 /spec/ruby | |
| parent | e1a0bcde769b26ab5dc47569981c8c7d0af21072 (diff) | |
Remove alternatives for ruby 1.8 and earliers
Diffstat (limited to 'spec/ruby')
| -rw-r--r-- | spec/ruby/core/symbol/inspect_spec.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/ruby/core/symbol/inspect_spec.rb b/spec/ruby/core/symbol/inspect_spec.rb index 26229da944..5af03a6484 100644 --- a/spec/ruby/core/symbol/inspect_spec.rb +++ b/spec/ruby/core/symbol/inspect_spec.rb @@ -6,7 +6,7 @@ describe "Symbol#inspect" do :fred? => ":fred?", :fred! => ":fred!", :BAD! => ":BAD!", - :_BAD! => ":_BAD!", + :_BAD! => ":_BAD!", :$ruby => ":$ruby", :@ruby => ":@ruby", :@@ruby => ":@@ruby", @@ -66,9 +66,9 @@ describe "Symbol#inspect" do :~ => ":~", :| => ":|", - :"!" => [":\"!\"", ":!" ], - :"!=" => [":\"!=\"", ":!="], - :"!~" => [":\"!~\"", ":!~"], + :"!" => ":!", + :"!=" => ":!=", + :"!~" => ":!~", :"\$" => ":\"$\"", # for justice! :"&&" => ":\"&&\"", :"'" => ":\"\'\"", @@ -103,7 +103,6 @@ describe "Symbol#inspect" do } symbols.each do |input, expected| - expected = expected[1] if expected.is_a?(Array) it "returns self as a symbol literal for #{expected}" do input.inspect.should == expected end |
