Skip to content

Commit

Permalink
Merge branch 'support_string' of https://github.com/xiaosu12138/numbe…
Browse files Browse the repository at this point in the history
…r-precision into support_string
  • Loading branch information
suxiao committed Jun 16, 2020
2 parents a7e9d38 + 6792da0 commit 76ac303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test('NP.digitLength can do digitLength operation', (t) => {
t.true(NP.digitLength(123.4567890123) === 10);

t.true(NP.digitLength(1.23e-5) === 7);
t.true(NP.digitLength(1.23e-5) === 7);
t.true(NP.digitLength(1.23E-5) === 7);
t.true(NP.digitLength(1.233467e-5) === 11);
t.true(NP.digitLength(123.45e-5) === 7);
t.true(NP.digitLength(1.23e-10) === 12);
Expand Down Expand Up @@ -91,7 +91,7 @@ test('NP.minus can do minus operation', (t) => {
t.true(NP.minus(-1, 0) === -1);
t.true(NP.minus(-1, -0) === -1);
t.true(NP.minus(1, 22) === -21);
t.true(NP.minus(8893568.397103781249, -7.2967405955) === 8893575.693844376749);
t.true(NP.minus(8893568.397103781249, -7.29674059550) === 8893575.693844376749);
t.true(NP.minus(105468873, 0) === 105468873);
t.true(NP.minus('0.07', '0.01') === 0.06);
t.true(NP.minus('0.7', '0.1') === 0.6);
Expand Down

0 comments on commit 76ac303

Please sign in to comment.