Sha256: 507eca8429d02d6d61aa344272d5efa6954545f2b76e704f4fab8b16457fae48
Contents?: true
Size: 341 Bytes
Versions: 1
Compression:
Stored size: 341 Bytes
Contents
require 'set' require 'procstar/regexp_matcher' describe Procstar::RegexpMatcher do describe 'Regexp#to_proc' do it 'should match the regex' do expect( %w|just another string array|.map(&/[jy]/) ).to eq ["j", nil, nil, "y"] expect( %w|just another string array|.select(&/[jy]/) ).to eq ["just", "array"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
procstar-1.0.0 | spec/regexp_matcher_spec.rb |