Skip to content
Permalink
Browse files

untag another spec (expose Bignum class)

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 4, 2013
1 parent d260940 commit b350001225c43c67205761804f4bd8c99a7b2b09
Showing with 7 additions and 4 deletions.
  1. +0 −1 spec/tags/core/fixnum/multiply_tags.txt
  2. +3 −0 tests/objects/test_bignumobject.py
  3. +4 −3 topaz/objspace.py
@@ -1,2 +1 @@
fails:Fixnum#* raises a TypeError when given a non-Integer
fails:Fixnum#* overflows to Bignum when the result does not fit in Fixnum
@@ -4,6 +4,9 @@


class TestBignumObject(BaseTopazTest):
def test_name(self, space):
space.execute("Bignum")

def test_plus(self, space):
w_res = space.execute("return 18446744073709551628 + 9")
assert space.bigint_w(w_res) == rbigint.fromlong(18446744073709551637)
@@ -148,9 +148,10 @@ def __init__(self, config):

for w_cls in [
self.w_basicobject, self.w_object, self.w_array, self.w_proc,
self.w_numeric, self.w_fixnum, self.w_float, self.w_string,
self.w_symbol, self.w_class, self.w_module, self.w_hash,
self.w_regexp, self.w_method, self.w_unbound_method, self.w_io,
self.w_numeric, self.w_fixnum, self.w_bignum, self.w_float,
self.w_string, self.w_symbol, self.w_class, self.w_module,
self.w_hash, self.w_regexp, self.w_method, self.w_unbound_method,
self.w_io,

self.w_NoMethodError, self.w_ArgumentError, self.w_TypeError,
self.w_ZeroDivisionError, self.w_SystemExit, self.w_RangeError,

0 comments on commit b350001

Please sign in to comment.