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