Changeset 8710
- Timestamp:
- 01/16/06 20:33:24 (3 years ago)
- Files:
-
- 2 modified
-
src/Pugs/Prim/Numeric.hs (modified) (1 diff)
-
t/operators/arith.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/Numeric.hs
r8055 r8710 55 55 op2Exp :: Val -> Val -> Eval Val 56 56 op2Exp x y = do 57 num1 <- fromVal =<< fromVal' x 58 if num1 == (1 :: VNum) then return (VInt 1) else do 57 59 num2 <- fromVal =<< fromVal' y 58 60 case reverse $ show (num2 :: VNum) of -
t/operators/arith.t
r8080 r8710 324 324 is 0.9**Inf, 0, "0.9**Inf converges towards 0"; 325 325 is 1.1**Inf, Inf, "1.1**Inf diverges towards Inf"; 326 is 1**Inf, 1 , :todo("1**Inf == 1");326 is 1**Inf, 1; 327 327 328 328 #flunk("1**Inf is platform-specific -- it's 1 on OSX and NaN elsewhere", :todo);
