Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
29 additions
and 40 deletions.
- +6 −2 lib-topaz/array.rb
- +11 −0 lib-topaz/enumerable.rb
- +8 −0 lib-topaz/range.rb
- +0 −11 spec/tags/core/array/first_tags.txt
- +0 −6 spec/tags/core/array/take_tags.txt
- +0 −11 spec/tags/core/enumerable/first_tags.txt
- +0 −2 spec/tags/core/enumerable/take_tags.txt
- +0 −7 spec/tags/core/range/first_tags.txt
- +4 −0 topaz/modules/topaz.py
- +0 −1 topaz/objects/rangeobject.py
@@ -1,11 +0,0 @@ | ||
fails:Array#first returns the first count elements if given a count | ||
fails:Array#first returns an empty array when passed count on an empty array | ||
fails:Array#first returns an empty array when passed count == 0 | ||
fails:Array#first returns an array containing the first element when passed count == 1 | ||
fails:Array#first returns the entire array when count > length | ||
fails:Array#first returns an array which is independent to the original when passed count | ||
fails:Array#first tries to convert the passed argument to an Integer using #to_int | ||
fails:Array#first raises a TypeError if the passed argument is not numeric | ||
fails:Array#first does not return subclass instance when passed count on Array subclasses | ||
fails:Array#first is not destructive | ||
fails:Array#first | ||
@@ -1,12 +1 @@ | ||
fails:Enumerable#first returns the first element | ||
fails:Enumerable#first returns nil if self is empty | ||
fails:Enumerable#first when passed an argument returns the first count elements if given a count | ||
fails:Enumerable#first when passed an argument returns an empty array when passed count on an empty array | ||
fails:Enumerable#first when passed an argument returns an empty array when passed count == 0 | ||
fails:Enumerable#first when passed an argument returns an array containing the first element when passed count == 1 | ||
fails:Enumerable#first when passed an argument raises an ArgumentError when count is negative | ||
fails:Enumerable#first when passed an argument returns the entire array when count > length | ||
fails:Enumerable#first when passed an argument tries to convert the passed argument to an Integer using #to_int | ||
fails:Enumerable#first when passed an argument raises a TypeError if the passed argument is not numeric | ||
fails:Enumerable#first when passed an argument gathers whole arrays as elements when each yields multiple | ||
fails:Enumerable#first when passed an argument consumes only what is needed |
@@ -1,3 +1 @@ | ||
fails:Enumerable#take when passed an argument tries to convert the passed argument to an Integer using #to_int | ||
fails:Enumerable#take when passed an argument raises a TypeError if the passed argument is not numeric | ||
fails:Enumerable#take when passed an argument gathers whole arrays as elements when each yields multiple |