Permalink
Browse files

fixing one of the tests with division

  • Loading branch information...
1 parent 260da58 commit 8a308a25935b3905db9c4e87ca4d245fb3574f52 Danny Yoo committed Nov 14, 2010
Showing with 11 additions and 10 deletions.
  1. +11 −10 test/tests.js
View
@@ -3288,7 +3288,8 @@ describe('old tests from Moby Scheme', {
divide(1, 0);
});
assertFails(function() { divide(makeFloat(1), 0); });
- assertFails(function() { divide(makeFloat(1),makeFloat(0)); });
+ assertEqv(divide(makeFloat(1),makeFloat(0)),
+ inf);
},
@@ -3814,20 +3815,20 @@ describe('old tests from Moby Scheme', {
testRound : function(){
assertTrue(equals(round(makeFloat(3.499999)),
- makeFloat(3)));
+ makeFloat(3)));
assertTrue(equals(round(makeFloat(3.5)),
- makeFloat(4)));
+ makeFloat(4)));
assertTrue(equals(round(makeFloat(3.51)),
- makeFloat(4)));
+ makeFloat(4)));
assertTrue(equals(round(makeRational(3)),
- makeRational(3)));
-
+ makeRational(3)));
+
assertTrue(equals(round(makeRational(17, 4)),
- makeRational(4)));
-
-
+ makeRational(4)));
+
+
assertTrue(equals(round(makeRational(-17, 4)),
- makeRational(-4)));
+ makeRational(-4)));
},

0 comments on commit 8a308a2

Please sign in to comment.