Sha256: 5eda3dc9eab6a0d8aa7196ea96988bdfcb72d82e105a77388c8b6a40ba0be119

Contents?: true

Size: 264 Bytes

Versions: 33

Compression:

Stored size: 264 Bytes

Contents

describe "String#next" do
  it "returns an empty string for empty strings" do
    "".next.should == ""
  end

  it "returns the successor by increasing the rightmost alphanumeric" do
    "abcd".next.should == "abce"
    "THX1138".next.should == "THX1139"
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
opal-0.5.5 spec/opal/core/string/next_spec.rb
opal-0.5.4 spec/corelib/string/next_spec.rb
opal-0.5.2 spec/corelib/string/next_spec.rb
opal-0.5.0 spec/corelib/string/next_spec.rb
opal-0.4.4 spec/rubyspec/core/string/next_spec.rb
opal-0.4.3 spec/rubyspec/core/string/next_spec.rb
opal-0.4.2 spec/rubyspec/core/string/next_spec.rb
opal-0.4.1 spec/rubyspec/core/string/next_spec.rb
opal-0.4.0 spec/rubyspec/core/string/next_spec.rb
opal-0.3.44 spec/rubyspec/core/string/next_spec.rb
opal-0.3.43 spec/rubyspec/core/string/next_spec.rb
opal-0.3.42 spec/core/string/next_spec.rb
opal-0.3.41 spec/core/string/next_spec.rb
opal-0.3.40 spec/core/string/next_spec.rb
opal-0.3.39 spec/core/string/next_spec.rb
opal-0.3.38 spec/core/string/next_spec.rb
opal-0.3.37 spec/core/string/next_spec.rb
opal-0.3.36 spec/core/string/next_spec.rb
opal-0.3.35 spec/core/string/next_spec.rb
opal-0.3.34 spec/core/string/next_spec.rb