Sha256: ff83bb19e1c1f7a60fbbb8577b8eaffb73a569bb9e68253e6a6c4c750f9de98e

Contents?: true

Size: 239 Bytes

Versions: 11

Compression:

Stored size: 239 Bytes

Contents

require 'facets/string/rewrite'
require 'test/unit'

class TC_String < Test::Unit::TestCase

  def test_rewrite
    s = "HELLO TOMMY!"
    rules = [[ /TOMMY/, 'MAN' ]]
    x = s.rewrite(rules)
    assert_equal("HELLO MAN!", x)
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

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