Sha256: e8c8c73dbd3ecfcd49558c1ce7e427bf00ad126cf574307097b090b776c39ee1
Contents?: true
Size: 851 Bytes
Versions: 1
Compression:
Stored size: 851 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/matchdata/matchtree.rb # # Extracted Fri Sep 08 20:20:32 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/matchdata/matchtree.rb' require 'test/unit' class TC_MatchData < Test::Unit::TestCase def test_matchtree_01 md = /(bb)(cc(dd))(ee)/.match "XXaabbccddeeffXX" assert_equal( [["bb"], ["cc", ["dd"]], ["ee"]] , md.matchtree ) end def test_matchtree_02 md = /(bb)c(c(dd))(ee)/.match "XXaabbccddeeffXX" assert_equal( [["bb"], "c", ["c", ["dd"]], ["ee"]] , md.matchtree ) end def test_matchset md = /(bb)(cc(dd))(ee)/.match "XXaabbccddeeffXX" assert_equal( ["XXaa", [["bb"], ["cc", ["dd"]], ["ee"]], "ffXX"] , md.matchset ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.7.46 | test/lib/facets/core/matchdata/test_matchtree.rb |