Sha256: 129b743333d21f39ec0c5d3dae99a96a16469b03faf94eade7ffe3df6665d5cb

Contents?: true

Size: 616 Bytes

Versions: 7

Compression:

Stored size: 616 Bytes

Contents

opal_filter "Enumerator" do
  fails "Enumerator#each requires multiple arguments" # arity issue

  fails "Enumerator#with_index returns the object being enumerated when given a block"
  fails "Enumerator#with_index numbers indices from the given index when given an offset but no block"
  fails "Enumerator#with_index numbers indices from the given index when given an offset and block"
  fails "Enumerator#with_index converts non-numeric arguments to Integer via #to_int"
  fails "Enumerator#with_index coerces the given numeric argument to an Integer"
  fails "Enumerator#with_index accepts negative argument"
end

Version data entries

7 entries across 7 versions & 1 rubygems

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