Sha256: 5eef76f8b82e374604a23140498734d8022d2b864caff44facc3b33b39eaa4e4

Contents?: true

Size: 840 Bytes

Versions: 2

Compression:

Stored size: 840 Bytes

Contents

opal_filter "Enumerator as generator" do
  fails "Enumerator#next returns the next element of the enumeration"
  fails "Enumerator#next raises a StopIteration exception at the end of the stream"
  fails "Enumerator#next cannot be called again until the enumerator is rewound"

  fails "Enumerator#rewind resets the enumerator to its initial state"
  fails "Enumerator#rewind returns self"
  fails "Enumerator#rewind has no effect on a new enumerator"
  fails "Enumerator#rewind has no effect if called multiple, consecutive times"
  fails "Enumerator#rewind does nothing if the object doesn't have a #rewind method"
  fails "Enumerator#rewind works with peek to reset the position"
  fails "Enumerator#rewind calls the enclosed object's rewind method if one exists"

  # 1.9.3 => 2.0
  fails "Enumerator.new ignores block if arg given"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opal-0.5.5 spec/opal/filters/unsupported/enumerator.rb
opal-0.5.4 spec/filters/unsupported/enumerator.rb