Sha256: 743c3c7a6f9cc9642940596e0eda2b7956fcbcc117480ae8b47adf497805644c
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/string/shatter.rb # # Extracted Mon Jun 05 08:14:29 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.4.0 | test/lib/facets/core/string/test_shatter.rb |