Skip to content

Commit

Permalink
untag another spec (expose Bignum class)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Gaynor committed Apr 4, 2013
1 parent d260940 commit b350001
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion spec/tags/core/fixnum/multiply_tags.txt
@@ -1,2 +1 @@
fails:Fixnum#* raises a TypeError when given a non-Integer fails:Fixnum#* raises a TypeError when given a non-Integer
fails:Fixnum#* overflows to Bignum when the result does not fit in Fixnum
3 changes: 3 additions & 0 deletions tests/objects/test_bignumobject.py
Expand Up @@ -4,6 +4,9 @@




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

def test_plus(self, space): def test_plus(self, space):
w_res = space.execute("return 18446744073709551628 + 9") w_res = space.execute("return 18446744073709551628 + 9")
assert space.bigint_w(w_res) == rbigint.fromlong(18446744073709551637) assert space.bigint_w(w_res) == rbigint.fromlong(18446744073709551637)
Expand Down
7 changes: 4 additions & 3 deletions topaz/objspace.py
Expand Up @@ -148,9 +148,10 @@ def __init__(self, config):


for w_cls in [ for w_cls in [
self.w_basicobject, self.w_object, self.w_array, self.w_proc, 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_numeric, self.w_fixnum, self.w_bignum, self.w_float,
self.w_symbol, self.w_class, self.w_module, self.w_hash, self.w_string, self.w_symbol, self.w_class, self.w_module,
self.w_regexp, self.w_method, self.w_unbound_method, self.w_io, 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_NoMethodError, self.w_ArgumentError, self.w_TypeError,
self.w_ZeroDivisionError, self.w_SystemExit, self.w_RangeError, self.w_ZeroDivisionError, self.w_SystemExit, self.w_RangeError,
Expand Down

0 comments on commit b350001

Please sign in to comment.