Sha256: 969dd870c236ff207041354981c3cf80bdf893d1745eb5227ce2192f1b851482

Contents?: true

Size: 272 Bytes

Versions: 16

Compression:

Stored size: 272 Bytes

Contents

require 'facets/string/subtract'
require 'test/unit'

class TC_String_Subtract < Test::Unit::TestCase

  def test_subtract
    assert_equal("fbar", "foobar" - "oo")
    assert_equal("pia pia!", "pizza pizza!" - "zz")
    assert_equal("", "letters" - /[a-z]+/)
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/string/test_subtract.rb
facets-2.8.3 test/core/string/test_subtract.rb
facets-2.8.2 test/core/string/test_subtract.rb
facets-2.8.1 test/core/string/test_subtract.rb
facets-2.8.0 test/core/string/test_subtract.rb
facets-2.7.0 test/core/string/test_subtract.rb
facets-2.6.0 test/core/string/test_subtract.rb
facets-2.4.0 test/string/test_subtract.rb
facets-2.4.1 test/string/test_subtract.rb
facets-2.4.4 test/core/string/test_subtract.rb
facets-2.4.3 test/core/string/test_subtract.rb
facets-2.4.2 test/core/string/test_subtract.rb
facets-2.5.1 test/core/string/test_subtract.rb
facets-2.5.0 test/core/string/test_subtract.rb
facets-2.4.5 test/core/string/test_subtract.rb
facets-2.5.2 test/core/string/test_subtract.rb