/vendor/gems/facets-2.4.5/test/core/string/test_lchomp.rb
Ruby | 18 lines | 14 code | 4 blank | 0 comment | 0 complexity | 282d25e14b80d46a141eaa3308ced310 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- 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