Skip to content

Commit

Permalink
Add test case to ensure scientific notation is correct (#6877)
Browse files Browse the repository at this point in the history
  • Loading branch information
desean1625 authored and cherniavskii committed Nov 5, 2019
1 parent 665200c commit 330a869
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/suites/core/UtilSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ describe('Util', function () {
expect(L.Util.formatNum(13.12325555, 3)).to.eql(13.123);
expect(L.Util.formatNum(13.12325555)).to.eql(13.123256);
expect(L.Util.formatNum(13.12325555, 0)).to.eql(13);
expect(isNaN(L.Util.formatNum(-7.993322e-10))).to.eql(false);
});
});

Expand Down

0 comments on commit 330a869

Please sign in to comment.