Sha256: 5f7b6144182696c798c3796e09362c0ba7cef3a5bc2d1d7908728411537ac874

Contents?: true

Size: 288 Bytes

Versions: 16

Compression:

Stored size: 288 Bytes

Contents

require 'facets/string/shatter'
require 'test/unit'

class TC_String_Shatter < Test::Unit::TestCase

  def test_shatter
    s = "<p>This<b>is</b>a test.</p>"
    sh = s.shatter( /<.*?>/ )
    e = ["<p>", "This", "<b>", "is", "</b>", "a test.", "</p>"]
    assert_equal(e, sh)
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

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