HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/ruby-3.0.2/spec/ruby/core/symbol/shared/succ.rb
require_relative '../../../spec_helper'

describe :symbol_succ, shared: true do
  it "returns a successor" do
    :abcd.send(@method).should == :abce
    :THX1138.send(@method).should == :THX1139
  end

  it "propagates a 'carry'" do
    :"1999zzz".send(@method).should == :"2000aaa"
    :ZZZ9999.send(@method).should == :AAAA0000
  end

  it "increments non-alphanumeric characters when no alphanumeric characters are present" do
    :"<<koala>>".send(@method).should == :"<<koalb>>"
    :"***".send(@method).should == :"**+"
  end
end