PageRenderTime 34ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/matchdata/test_match.rb

https://bitbucket.org/mediashelf/fedora-migrator
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
  1. # Test for lib/facets/matchdata/matchset
  2. require 'facets/matchdata/match.rb'
  3. require 'test/unit'
  4. class Test_MatchData_Match < Test::Unit::TestCase
  5. def test_match
  6. md = /X(a)(b)(c)X/.match("YXabcXY")
  7. assert_equal( "XabcX", md.match )
  8. end
  9. end