Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 'math' tests to tolerate float imprecision (google#409)
The `math.tan(math.pi / 4) == 1` test and its negative pi counter part fails under arm64 architecture. Use `assert.true(near(...))` to tolerate float imprecision, like the other 8 instances in the same test data file. Tested on 24 combinations of OS x arch x Go version. - {linux, darwin} x {arm64, amd64} x go1.{16, 17, 18}
- Loading branch information