Closed Yaffle closed 9 years ago
@ljharb , for test/math.js
it is possible to use code between line 1427 and line 1459,
almostEqual
at https://github.com/paulmillr/es6-shim/blob/master/test/math.js#L4 should be changed to use same code as isNear
, so it will measure relative error, not absolute, and it will work better for small values
...
I do not know how to work with git
.
I've done the var x
changes in master, so you'll want to rebase onto the latest master (and also reduce the 5 commits down).
As for isNear
- I'd be happy to accept a separate PR to change the almostEqual
expect implementation to be more precise, and update the associated tests.
@ljharb continuation in https://github.com/paulmillr/es6-shim/pull/338
@Yaffle Please don't do this in the future - creating extra pull requests clutters up the repo, and they can't ever be deleted. Stick with one branch name per pull request.
Please add tests that would fail without all of these changes.