Sha256: 3e0c86d0f5e0cf17d922e17cf25a03e0a804396e909876d9a22f14335cb55642

Contents?: true

Size: 163 Bytes

Versions: 31

Compression:

Stored size: 163 Bytes

Contents

describe "MatchData#to_a" do
  it "returns an array of matches" do
    /(.)(.)(\d+)(\d)/.match("THX1138").to_a.should == ["HX1138", "H", "X", "113", "8"]
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
opal-0.4.4 spec/rubyspec/core/matchdata/to_a_spec.rb
opal-0.4.3 spec/rubyspec/core/matchdata/to_a_spec.rb
opal-0.4.2 spec/rubyspec/core/matchdata/to_a_spec.rb
opal-0.4.1 spec/rubyspec/core/matchdata/to_a_spec.rb
opal-0.4.0 spec/rubyspec/core/matchdata/to_a_spec.rb
opal-0.3.44 spec/rubyspec/core/matchdata/to_a_spec.rb
opal-0.3.43 spec/rubyspec/core/matchdata/to_a_spec.rb
opal-0.3.42 spec/core/matchdata/to_a_spec.rb
opal-0.3.41 spec/core/matchdata/to_a_spec.rb
opal-0.3.40 spec/core/matchdata/to_a_spec.rb
opal-0.3.39 spec/core/matchdata/to_a_spec.rb
opal-0.3.38 spec/core/matchdata/to_a_spec.rb
opal-0.3.37 spec/core/matchdata/to_a_spec.rb
opal-0.3.36 spec/core/matchdata/to_a_spec.rb
opal-0.3.35 spec/core/matchdata/to_a_spec.rb
opal-0.3.34 spec/core/matchdata/to_a_spec.rb
opal-0.3.33 spec/core/matchdata/to_a_spec.rb
opal-0.3.32 spec/core/matchdata/to_a_spec.rb
opal-0.3.31 spec/core/matchdata/to_a_spec.rb
opal-0.3.30 spec/core/matchdata/to_a_spec.rb