Sha256: faa8831eef06f16899babf16bfa594e29383cc6560ad640ee98fcb23ba7ac0d2

Contents?: true

Size: 545 Bytes

Versions: 1

Compression:

Stored size: 545 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/string/mscan.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/string/mscan.rb'


  require 'test/unit'

  class TCString < Test::Unit::TestCase

    def test_mscan
      r = 'abc,def,gh'.mscan(/[,]/)
      assert( r.all?{ |md| MatchData === md } )
      assert_equal( 2, r.to_a.length )
      assert_equal( ',', r[0][0] )
      assert_equal( ',', r[1][0] )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.0.3 packages/core/test/lib/facet/string/test_mscan.rb