Commit 5227904
committed
test: tolerate float64 dust when asserting composed projection rotations
The composed d3 factory rotation can carry float64 dust depending on
platform math (e.g. 96.00000000000001 on linux runners), so exact
toEqual/toBe assertions are environment-dependent. Assert each axis
with a tight 1e-9 tolerance instead.1 parent 21f8497 commit 5227904
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2890 | 2890 | | |
2891 | 2891 | | |
2892 | 2892 | | |
2893 | | - | |
2894 | | - | |
2895 | | - | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
2896 | 2901 | | |
2897 | 2902 | | |
2898 | 2903 | | |
2899 | 2904 | | |
2900 | | - | |
| 2905 | + | |
2901 | 2906 | | |
2902 | 2907 | | |
2903 | 2908 | | |
| |||
0 commit comments