Sha256: d1e3f1869d2ce54c74e55f7c7a3d53a30ded43acb101d01ffcd871f5a90728c6

Contents?: true

Size: 232 Bytes

Versions: 4

Compression:

Stored size: 232 Bytes

Contents

covers 'facets/string/shatter'

testcase String do

  unit :shatter do
    s = "<p>This<b>is</b>a test.</p>"
    r = s.shatter( /<.*?>/ )
    x = ["<p>", "This", "<b>", "is", "</b>", "a test.", "</p>"]
    r.assert == x
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/string/test_shatter.rb
facets-2.9.0 test/core/string/test_shatter.rb
facets-2.9.0.pre.2 test/core/string/test_shatter.rb
facets-2.9.0.pre.1 test/core/string/test_shatter.rb