Sha256: 146301448669b36c9246d301a53fabbade53da24227d5d83d6b467474b1f7100

Contents?: true

Size: 251 Bytes

Versions: 16

Compression:

Stored size: 251 Bytes

Contents

require 'facets/regexp/to_re'
require 'test/unit'

class TestRegexpToRe < Test::Unit::TestCase

  def test_to_re
    r = /0..10/
    assert_equal( r, r.to_re )
  end

  def test_to_regexp
    r = /0..10/
    assert_equal( r, r.to_regexp )
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/regexp/test_to_re.rb
facets-2.8.3 test/core/regexp/test_to_re.rb
facets-2.8.2 test/core/regexp/test_to_re.rb
facets-2.8.1 test/core/regexp/test_to_re.rb
facets-2.8.0 test/core/regexp/test_to_re.rb
facets-2.7.0 test/core/regexp/test_to_re.rb
facets-2.6.0 test/core/regexp/test_to_re.rb
facets-2.4.0 test/regexp/test_to_re.rb
facets-2.4.1 test/regexp/test_to_re.rb
facets-2.4.4 test/core/regexp/test_to_re.rb
facets-2.4.2 test/core/regexp/test_to_re.rb
facets-2.4.3 test/core/regexp/test_to_re.rb
facets-2.4.5 test/core/regexp/test_to_re.rb
facets-2.5.0 test/core/regexp/test_to_re.rb
facets-2.5.1 test/core/regexp/test_to_re.rb
facets-2.5.2 test/core/regexp/test_to_re.rb