Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #820 from merryman/Fixnum#%
All Fixnum#modulo specs passing now.
- Loading branch information
Showing
with
180 additions
and 42 deletions.
- +5 −5 lib-topaz/numeric.rb
- +0 −7 spec/tags/core/bignum/divmod_tags.txt
- +0 −4 spec/tags/core/bignum/modulo_tags.txt
- +0 −2 spec/tags/core/fixnum/divmod_tags.txt
- +0 −4 spec/tags/core/fixnum/modulo_tags.txt
- +0 −5 spec/tags/core/float/divmod_tags.txt
- +0 −13 spec/tags/core/float/modulo_tags.txt
- +5 −0 spec/tags/core/thread/priority_tags.txt
- +49 −0 topaz/objects/bignumobject.py
- +76 −0 topaz/objects/floatobject.py
- +45 −2 topaz/objects/intobject.py
@@ -1,5 +1 @@ | ||
fails:Fixnum#% | ||
fails:Fixnum#modulo returns the modulus obtained from dividing self by the given argument | ||
fails:Fixnum#modulo raises a ZeroDivisionError when the given argument is 0 | ||
fails:Fixnum#modulo raises a ZeroDivisionError when the given argument is 0 and a Float | ||
fails:Fixnum#modulo raises a TypeError when given a non-Integer |
@@ -0,0 +1,5 @@ | ||
fails:Thread#priority inherits the priority of the current thread while running | ||
fails:Thread#priority maintain the priority of the current thread after death | ||
fails:Thread#priority returns an integer | ||
fails:Thread#priority= when set with an integer returns an integer | ||
fails:Thread#priority= when set with a non-integer raises a type error |