forked from IronLanguages/main
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* IListOps.Difference now uses Object#hash and Object#eql? to check f…
…or object equality, this fixes the failing spec "Array#- acts as if using an intermediate hash to collect values" * Modified IListOps.RecursiveJoin to make it flag the resulting string as tainted if the given array, at least one of its elements or the separator string are tainted. * Changed IListOps.Repetition to return IList instances of the same type of the given self argument (this fixes also "Array#* with an integer returns subclass instance with Array subclasses") * Various changes to IListOps.Join to clear all of the remaining tags for the specs of Array#join. The tags marked as critical in join_tags.txt are not related to pending bugs for Array#join. * Added ArrayOps.ToAry as Array#to_a and Array#to_ary behave differently on subclasses of arrays. * Cleaning up tags removing expectations that do not fail anymore. * Changed one overload of IListOps.Equals to make it try to call #to_ary on the object argument of Array#== and use the resulting array as the actual argument for the equality check. * Changed IListOps.SetElement to make it try to invoke #to_ary on its argument for multi-element sets. * Changed IListOps.Reverse to return IList instances of the same type of the given self argument (this change also fixes the following failing spec: "Array#reverse returns subclass instance on Array subclasses") * Fixed IListOps.ReverseIndex as Array#rindex should not fail if elements are removed from the array during the iteration over its elements. * Slightly modified IListOps.UniqueSelf as suggested upon review.
- Loading branch information
Showing
15 changed files
with
92 additions
and
68 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
...nal.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/element_set_tags.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...nal.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/equal_value_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,2 +1 @@ | ||
fails:Array#== returns false if any element is not == to the corresponding element in the other the array | ||
fails:Array#== calls to_ary on its argument |
1 change: 0 additions & 1 deletion
1
...al.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/intersection_tags.txt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...n/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/join_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
1 change: 0 additions & 1 deletion
1
.../External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/minus_tags.txt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...ternal.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/multiply_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
1 change: 0 additions & 1 deletion
1
...in/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/new_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,2 +1 @@ | ||
fails:Array.new with (size, object=nil) raises an ArgumentError if size is too large | ||
fails:Array.new with (size, object=nil) uses the block value instead of using the default value |
1 change: 0 additions & 1 deletion
1
...xternal.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/reverse_tags.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/rindex_tags.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
.../External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/union_tags.txt
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
...n/External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/array/uniq_tags.txt
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
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
Oops, something went wrong.