Sha256: e996f4becf87624b39b9d5d9750595a4cbf3727105ffdee01b367065514973c1
Contents?: true
Size: 530 Bytes
Versions: 1
Compression:
Stored size: 530 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/string/shatter.rb # # Extracted Fri Feb 16 02:00:37 EST 2007 # Project.rb Test Extraction # 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.8.49 | test/lib/facets/core/string/test_shatter.rb |