Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
osofem authored Aug 15, 2017
1 parent c161b54 commit e7f3c81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/divide.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
console.log("%cTesting for divide", "color: blue; font-size: 20pt;");

assertDeepEqual(BigArith.divide("11460", "1106"), new BigArith("10.36166365280289330922242314647377938517179023508137432188065099457504520795660036166365280289330922242314647377938517179023508137432188065099457504520795660036166365280289330922242314647377938517179024"));

assertDeepEqual(BigArith.divWithRem("64727385000", "541829"), ["119460","492660"]);

assertDeepEqual(BigArith.divide("426", 2), new BigArith(213));
assertDeepEqual(BigArith.divide("128", 2), new BigArith(64));
assertDeepEqual(BigArith.divide("138", 2), new BigArith(69));
Expand Down

0 comments on commit e7f3c81

Please sign in to comment.