Sha256: f96c3653a7aa4b8c3e00b9c5efba5482d75592e889993732cbabac5e34aad258

Contents?: true

Size: 912 Bytes

Versions: 6

Compression:

Stored size: 912 Bytes

Contents

opal_filter "MatchData" do
  fails "MatchData#regexp returns the pattern used in the match"
  fails "MatchData#values_at when passed a Range returns an array of the matching value"

  fails "MatchData#[Symbol] returns the corresponding named match when given a Symbol"
  fails "MatchData#[Symbol] returns the corresponding named match when given a String"
  fails "MatchData#[Symbol] returns the matching version of multiple corresponding named match"
  fails "MatchData#[Symbol] returns the last match when multiple named matches exist with the same name"
  fails "MatchData#[Symbol] returns nil on non-matching named matches"
  fails "MatchData#[Symbol] raises an IndexError if there is no named match corresponding to the Symbol"
  fails "MatchData#[Symbol] raises an IndexError if there is no named match corresponding to the String"
  fails "MatchData#[Symbol] returns matches in the String's encoding"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-0.7.2 spec/filters/bugs/match_data.rb
opal-0.7.1 spec/filters/bugs/match_data.rb
opal-0.7.0 spec/filters/bugs/match_data.rb
opal-0.7.0.rc1 spec/filters/bugs/match_data.rb
opal-0.7.0.beta3 spec/filters/bugs/match_data.rb
opal-0.7.0.beta2 spec/filters/bugs/match_data.rb