Sha256: 3f4bc0940178765014b435a5f471aeebcc3ff5a8cfc7ddca9b6b1153af9bdc7c
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/string/shatter.rb # # Extracted Fri Sep 08 20:20:32 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/string/shatter.rb' require 'test/unit' class TCString < 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.7.46 | test/lib/facets/core/string/test_shatter.rb |