Skip to content

Commit

Permalink
Remove of math forwards from rfloat
Browse files Browse the repository at this point in the history
  • Loading branch information
krono committed Jan 26, 2018
1 parent 533c836 commit d33005c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rsqueakvm/test/test_primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from rsqueakvm.primitives.constants import *

from rpython.rlib.rarithmetic import intmask, r_uint, r_int64
from rpython.rlib.rfloat import isinf, isnan

from .util import (create_space, copy_to_module, cleanup_module,
InterpreterForTest, very_slow_test)
Expand Down Expand Up @@ -514,8 +513,8 @@ def test_primitive_log_n():
assert prim(FLOAT_LOG_N, [1.0]).value == 0.0
assert prim(FLOAT_LOG_N, [math.e]).value == 1.0
assert float_equals(prim(FLOAT_LOG_N, [10.0]), math.log(10))
assert isinf(prim(FLOAT_LOG_N, [0.0]).value) # works also for negative infinity
assert isnan(prim(FLOAT_LOG_N, [-1.0]).value)
assert math.isinf(prim(FLOAT_LOG_N, [0.0]).value) # works also for negative infinity
assert math.isnan(prim(FLOAT_LOG_N, [-1.0]).value)

def test_primitive_exp():
assert float_equals(prim(FLOAT_EXP, [-1.0]), 1/math.e)
Expand Down

0 comments on commit d33005c

Please sign in to comment.