1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core
nobu 0faf018624 Bug Fix Enumerator::Lazy#uniq state for multiple call
* enumerator.c (lazy_uniq_i): create new hash for each calls.
  [Fix GH-1820]

Currently

	2.5.0-preview1 :001 > arr = (0..100).lazy.uniq{|i| i % 10}
	 => #<Enumerator::Lazy: #<Enumerator::Lazy: 0..100>:uniq>
	2.5.0-preview1 :002 > arr.to_a
	 => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
	2.5.0-preview1 :003 > arr.to_a
	 => []

Expected

arr.to_a to always return same output

From: Anmol Chopra <anmolchopra@rocketbox.in>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-13 01:00:08 +00:00
..
argf Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
array Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
basicobject Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
binding Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
builtin_constants Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
class Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
comparable Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
complex Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
dir Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
encoding Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
enumerable Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
enumerator Bug Fix Enumerator::Lazy#uniq state for multiple call 2018-03-13 01:00:08 +00:00
env Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
exception Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
false Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
fiber Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
file Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
filetest Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
float Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
gc Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
hash Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
integer Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
io Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
kernel Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
main Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
marshal Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
matchdata Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
math Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
method required paths are real paths 2018-03-05 01:57:27 +00:00
module Fix setting method visibility on method wrapped with prepend 2018-03-12 06:54:43 +00:00
mutex Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
nil Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
numeric Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
objectspace Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
proc required paths are real paths 2018-03-05 01:57:27 +00:00
process Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
random Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
range Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
rational Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
regexp Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
signal Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
string Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
struct Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
symbol Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
systemexit Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
thread Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
threadgroup Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
time Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
tracepoint Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
true Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
unboundmethod required paths are real paths 2018-03-05 01:57:27 +00:00
warning Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00