/vendor/gems/facets-2.4.5/test/core/matchdata/test_match.rb
Ruby | 14 lines | 8 code | 5 blank | 1 comment | 0 complexity | 819ec9fb38c592aa1c8fa8ca135fb357 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- # Test for lib/facets/matchdata/matchset
- require 'facets/matchdata/match.rb'
- require 'test/unit'
- class Test_MatchData_Match < Test::Unit::TestCase
- def test_match
- md = /X(a)(b)(c)X/.match("YXabcXY")
- assert_equal( "XabcX", md.match )
- end
- end