-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into truffle-head
- 9.4.12.0
- 9.4.11.0
- 9.4.10.0
- 9.4.9.0
- 9.4.8.0
- 9.4.7.0
- 9.4.6.0
- 9.4.5.0
- 9.4.4.0
- 9.4.3.0
- 9.4.2.0
- 9.4.1.0
- 9.4.0.0
- 9.3.15.0
- 9.3.14.0
- 9.3.13.0
- 9.3.12.0
- 9.3.11.0
- 9.3.10.0
- 9.3.9.0
- 9.3.8.0
- 9.3.7.0
- 9.3.6.0
- 9.3.5.0
- 9.3.4.0
- 9.3.3.0
- 9.3.2.0
- 9.3.1.0
- 9.3.0.0
- 9.2.21.0
- 9.2.20.1
- 9.2.20.0
- 9.2.19.0
- 9.2.18.0
- 9.2.17.0
- 9.2.16.0
- 9.2.15.0
- 9.2.14.0
- 9.2.13.0
- 9.2.12.0
- 9.2.11.1
- 9.2.11.0
- 9.2.10.0
- 9.2.9.0
- 9.2.8.0
- 9.2.7.0
- 9.2.6.0
- 9.2.5.0
- 9.2.4.1
- 9.2.4.0
- 9.2.3.0
- 9.2.2.0
- 9.2.1.0
- 9.2.0.0
- 9.1.17.0
- 9.1.16.0
- 9.1.15.0
- 9.1.14.0
- 9.1.13.0
- 9.1.12.0
- 9.1.11.0
- 9.1.10.0
- 9.1.9.0
- 9.1.8.0
- 9.1.7.0
- 9.1.6.0
- 9.1.5.0
- 9.1.4.0
- 9.1.3.0
- 9.1.2.0
- 9.1.1.0
- 9.1.0.0
- 9.0.5.0
- 9.0.4.0
- 9.0.3.0
- 9.0.1.0
- 9.0.0.0
- 9.0.0.0.rc2
- 9.0.0.0.rc1
Showing
65 changed files
with
758 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
593 changes: 593 additions & 0 deletions
593
core/src/main/ruby/jruby/truffle/core/rubinius/kernel/common/enumerator.rb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
fails:Enumerator#each yields each element of self to the given block | ||
fails:Enumerator#each calls #each on the object given in the constructor by default | ||
fails:Enumerator#each calls #each on the underlying object until it's exhausted | ||
fails:Enumerator#each calls the method given in the constructor instead of #each | ||
fails:Enumerator#each calls the method given in the constructor until it's exhausted | ||
fails:Enumerator#each raises a NoMethodError if the object doesn't respond to #each | ||
fails:Enumerator#each returns self if not given arguments and not given a block | ||
fails:Enumerator#each returns the same value from receiver.each if block is given | ||
fails:Enumerator#each passes given arguments at initialized to receiver.each | ||
fails:Enumerator#each requires multiple arguments | ||
fails:Enumerator#each appends given arguments to receiver.each | ||
fails:Enumerator#each returns the same value from receiver.each if block and arguments are given | ||
fails:Enumerator#each returns new Enumerator if given arguments but not given a block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
fails:Enumerator#each_with_index passes each element and its index to block | ||
fails:Enumerator#each_with_index returns the object being enumerated when given a block | ||
fails:Enumerator#each_with_index binds splat arguments properly | ||
fails:Enumerator#each_with_index returns an enumerator if no block is supplied | ||
fails:Enumerator#each_with_index raises an ArgumentError if passed extra arguments | ||
fails:Enumerator#each_with_index passes on the given block's return value | ||
fails:Enumerator#each_with_index returns the iterator's return value | ||
fails:Enumerator#each_with_index returns the correct value if chained with itself |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
fails:Enumerator#each_with_object receives an argument | ||
fails:Enumerator#each_with_object with block returns the given object | ||
fails:Enumerator#each_with_object with block the block parameter passes each element to first parameter | ||
fails:Enumerator#each_with_object with block the block parameter passes the given object to last parameter | ||
fails:Enumerator#each_with_object without block returns new Enumerator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
fails:#enum_for is defined in Kernel | ||
fails:#enum_for returns a new enumerator | ||
fails:#enum_for defaults the first argument to :each | ||
fails:#enum_for exposes multi-arg yields as an array | ||
fails:#enum_for uses the passed block's value to calculate the size of the enumerator | ||
fails:#enum_for defers the evaluation of the passed block until #size is called |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
fails:Enumerator#feed sets the future return value of yield if called before advancing the iterator | ||
fails:Enumerator#feed causes yield to return the value if called during iteration | ||
fails:Enumerator#feed can be called for each iteration | ||
fails:Enumerator#feed returns nil | ||
fails:Enumerator#feed raises a TypeError if called more than once without advancing the enumerator | ||
fails:Enumerator#feed sets the return value of Yielder#yield |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
fails:Enumerator::Generator#each is an enumerable | ||
fails:Enumerator::Generator#each supports enumeration with a block | ||
fails:Enumerator::Generator#each raises a LocalJumpError if no block given | ||
fails:Enumerator::Generator#each returns the block returned value | ||
fails:Enumerator::Generator#each requires multiple arguments | ||
fails:Enumerator::Generator#each appends given arguments to receiver.each |
2 changes: 0 additions & 2 deletions
2
spec/truffle/tags/core/enumerator/generator/initialize_tags.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
fails:Enumerator::Generator#initialize is a private method | ||
fails:Enumerator::Generator#initialize returns self when given a block | ||
fails:Enumerator::Generator#initialize on frozen instance raises a RuntimeError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
fails:Enumerator#initialize is a private method | ||
fails:Enumerator#initialize returns self when given an object | ||
fails:Enumerator#initialize returns self when given a block | ||
fails:Enumerator#initialize accepts a block | ||
fails:Enumerator#initialize sets size to nil if size is not given | ||
fails:Enumerator#initialize sets size to nil if the given size is nil | ||
fails:Enumerator#initialize sets size to the given size if the given size is Float::INFINITY | ||
fails:Enumerator#initialize sets size to the given size if the given size is a Fixnum | ||
fails:Enumerator#initialize sets size to the given size if the given size is a Proc | ||
fails:Enumerator#initialize on frozen instance raises a RuntimeError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,2 @@ | ||
fails:Enumerator#inject yields each element of self to the given block | ||
fails:Enumerator#inject calls #each on the object given in the constructor by default | ||
fails:Enumerator#inject calls #each on the underlying object until it's exhausted | ||
fails:Enumerator#inject calls the method given in the constructor instead of #each | ||
fails:Enumerator#inject calls the method given in the constructor until it's exhausted | ||
fails:Enumerator#inject raises a NoMethodError if the object doesn't respond to #each | ||
fails:Enumerator#inject returns self if not given arguments and not given a block | ||
fails:Enumerator#inject returns the same value from receiver.each if block is given | ||
fails:Enumerator#inject passes given arguments at initialized to receiver.each | ||
fails:Enumerator#inject requires multiple arguments | ||
fails:Enumerator#inject appends given arguments to receiver.each | ||
fails:Enumerator#inject returns the same value from receiver.each if block and arguments are given | ||
fails:Enumerator#inject returns new Enumerator if given arguments but not given a block | ||
fails:Enumerator#inject works when chained against each_with_index |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
fails:Enumerator::Lazy#initialize is a private method | ||
fails:Enumerator::Lazy#initialize returns self | ||
fails:Enumerator::Lazy#initialize sets nil to size if not given a size | ||
fails:Enumerator::Lazy#initialize sets nil to size if given size is nil | ||
fails:Enumerator::Lazy#initialize sets given size to own size if the given size is Float::INFINITY | ||
fails:Enumerator::Lazy#initialize sets given size to own size if the given size is a Fixnum | ||
fails:Enumerator::Lazy#initialize sets given size to own size if the given size is a Proc | ||
fails:Enumerator::Lazy#initialize raises an ArgumentError when block is not given | ||
fails:Enumerator::Lazy#initialize when the returned lazy enumerator is evaluated by Enumerable#first stops after specified times | ||
fails:Enumerator::Lazy#initialize on frozen instance raises a RuntimeError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
fails:Enumerator::Lazy is a subclass of Enumerator | ||
fails:Enumerator::Lazy#lazy returns self |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
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 works with peek to reset the position | ||
fails:Enumerator#rewind calls the enclosed object's rewind method if one exists | ||
fails:Enumerator#rewind does nothing if the object doesn't have a #rewind method | ||
fails:Enumerator#rewind clears a pending #feed value |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
fails:#to_enum is defined in Kernel | ||
fails:#to_enum returns a new enumerator | ||
fails:#to_enum defaults the first argument to :each | ||
fails:#to_enum exposes multi-arg yields as an array | ||
fails:#to_enum uses the passed block's value to calculate the size of the enumerator | ||
fails:#to_enum defers the evaluation of the passed block until #size is called |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
fails:Enumerator#with_object receives an argument | ||
fails:Enumerator#with_object with block returns the given object | ||
fails:Enumerator#with_object with block the block parameter passes each element to first parameter | ||
fails:Enumerator#with_object with block the block parameter passes the given object to last parameter | ||
fails:Enumerator#with_object without block returns new Enumerator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
fails:Enumerator::Yielder#<< yields the value to the block | ||
fails:Enumerator::Yielder#<< returns self | ||
fails:Enumerator::Yielder#<< requires multiple arguments | ||
fails:Enumerator::Yielder#<< yields with passed arguments |
2 changes: 0 additions & 2 deletions
2
spec/truffle/tags/core/enumerator/yielder/initialize_tags.txt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fails(windows bug):Struct#to_s is a synonym for inspect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fails:Time#wday returns an integer representing the day of the week, 0..6, with Sunday being 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
fails(windows bug):The __FILE__ pseudo-variable equals the absolute path of a file loaded by an absolute path | ||
fails(windows bug):The __FILE__ pseudo-variable equals the absolute path of a file loaded by a relative path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters