Sha256: 856b2d85e2a074987fed673a68615f38647b3846db6156c427163324a6fe4ad8

Contents?: true

Size: 289 Bytes

Versions: 11

Compression:

Stored size: 289 Bytes

Contents

require 'facets/string/chomp' # FIXME
require 'test/unit'

class Test_String < Test::Unit::TestCase

  def test_lchomp
    s = "xxboo"
    r = s.lchomp("xx")
    assert_equal( "boo", r )
  end

  def test_lchomp!
    s = "xxboo"
    s.lchomp!("xx")
    assert_equal( "boo", s )
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/string/test_lchomp.rb
facets-2.8.3 test/core/string/test_lchomp.rb
facets-2.8.2 test/core/string/test_lchomp.rb
facets-2.8.1 test/core/string/test_lchomp.rb
facets-2.8.0 test/core/string/test_lchomp.rb
facets-2.7.0 test/core/string/test_lchomp.rb
facets-2.6.0 test/core/string/test_lchomp.rb
facets-2.4.5 test/core/string/test_lchomp.rb
facets-2.5.1 test/core/string/test_lchomp.rb
facets-2.5.0 test/core/string/test_lchomp.rb
facets-2.5.2 test/core/string/test_lchomp.rb