Bug #115 [ruby-core:17144]

SortedSet#delete_if does not yield in sorted order

Added by Arthur Schreiber 391 days ago. Updated 390 days ago.

Status :Closed Start :06/09/2008
Priority :Normal Due date :
Assigned to :Akinori MUSHA % Done :

100%

Category :-
Target version :-
ruby -v :


Description

ret = []
SortedSet["one", "two", "three"].delete_if { |x| ret << x }
ret == ["one", "two", "three"].sort # => false

History

06/09/2008 05:50 AM - Arthur Schreiber

Same for SortedSet#reject!:

ret = []
SortedSet["one", "two", "three"].reject! { |x| ret << x }
ret == ["one", "two", "three"].sort # => false

06/09/2008 05:50 AM - Anonymous

Issue #115 has been updated by Arthur Schreiber.


Same for SortedSet#reject!:

ret = []
SortedSet["one", "two", "three"].reject! { |x| ret << x }
ret == ["one", "two", "three"].sort # => false
----------------------------------------
Bug #115: SortedSet#delete_if does not yield in sorted order
http://redmine.ruby-lang.org/issues/show/115

Author: Arthur Schreiber
Status: Open
Priority: Normal
Assigned to: Akinori MUSHA
Category: 
Target version: 


ret = []
SortedSet["one", "two", "three"].delete_if { |x| ret << x }
ret == ["one", "two", "three"].sort # => false


----------------------------------------
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://redmine.ruby-lang.org/my/account

06/09/2008 06:01 PM - Akinori MUSHA

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
Fixed in SVN HEAD.  Thanks!

06/09/2008 06:01 PM - Anonymous

Issue #115 has been updated by Akinori MUSHA.

Status changed from Open to Closed
% Done changed from 0 to 100

Fixed in SVN HEAD.  Thanks!
----------------------------------------
Bug #115: SortedSet#delete_if does not yield in sorted order
http://redmine.ruby-lang.org/issues/show/115

Author: Arthur Schreiber
Status: Closed
Priority: Normal
Assigned to: Akinori MUSHA
Category: 
Target version: 


ret = []
SortedSet["one", "two", "three"].delete_if { |x| ret << x }
ret == ["one", "two", "three"].sort # => false


----------------------------------------
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://redmine.ruby-lang.org/my/account

Also available in: Atom PDF