Sha256: 1e4c451413cdc51b0911d9418f3810298b8019cab8ca166655fa0fc307addaa0
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/string/divide.rb # # Extracted Tue Jul 25 10:07:15 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/string/divide.rb' require 'test/unit' class TCString < Test::Unit::TestCase def test_shatter s = "<p>This<b>is</b>a test.</p>" sh = s.divide( /<.*?>/ ) 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.0 | test/lib/facets/core/string/test_divide.rb |