Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Jul 25, 2022
1 parent 68a1b51 commit 95aba42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ test("subtract", ({ eq }) => {
test("long_subtraction", ({ eq }) => {
eq(long_subtraction("525950.95", "525950"), "0.95");
eq(long_subtraction("100", "10"), "90");
eq(long_subtraction("0.351562500000000006", "0"), "0.351562500000000006");
});

test("-10 + 20.5", ({ eq }) => {
Expand Down Expand Up @@ -434,6 +435,7 @@ test("-83534564031027.53 + -54503799876882.016", ({ eq }) => {

test("compare_positive", ({ eq }) => {
eq(compare_positive("525950", "525950.95"), "<");
eq(compare_positive("0.351562500000000006", "0"), ">");
});

// test random numbers
Expand Down

0 comments on commit 95aba42

Please sign in to comment.