Commit dce6d32
committed
Finished fixing floating point comparisons. We have streamlined how floats and doubles are checked, but we still can't compare them for equality directly. So we're directly testing for infinite and NaN before checking diffs. Also, we've officially decided that for testing purposes NaN shall equal NaN, +Inf shall equal +Inf, and -Inf shall equal -Inf. It's what most people expect during a test.
1 parent 0f07adf commit dce6d32
3 files changed
+20
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
625 | 626 | | |
626 | 627 | | |
627 | 628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
53 | | - | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2797 | 2797 | | |
2798 | 2798 | | |
2799 | 2799 | | |
2800 | | - | |
| 2800 | + | |
2801 | 2801 | | |
2802 | 2802 | | |
2803 | 2803 | | |
2804 | 2804 | | |
2805 | | - | |
2806 | 2805 | | |
2807 | | - | |
2808 | 2806 | | |
2809 | 2807 | | |
2810 | 2808 | | |
| |||
3192 | 3190 | | |
3193 | 3191 | | |
3194 | 3192 | | |
3195 | | - | |
| 3193 | + | |
3196 | 3194 | | |
3197 | 3195 | | |
3198 | 3196 | | |
3199 | 3197 | | |
3200 | 3198 | | |
3201 | 3199 | | |
3202 | 3200 | | |
3203 | | - | |
3204 | 3201 | | |
3205 | | - | |
3206 | 3202 | | |
3207 | 3203 | | |
3208 | 3204 | | |
| |||
3325 | 3321 | | |
3326 | 3322 | | |
3327 | 3323 | | |
3328 | | - | |
| 3324 | + | |
3329 | 3325 | | |
3330 | 3326 | | |
3331 | 3327 | | |
3332 | 3328 | | |
3333 | | - | |
3334 | 3329 | | |
3335 | | - | |
3336 | 3330 | | |
3337 | 3331 | | |
3338 | 3332 | | |
| |||
3727 | 3721 | | |
3728 | 3722 | | |
3729 | 3723 | | |
3730 | | - | |
3731 | 3724 | | |
3732 | | - | |
3733 | 3725 | | |
3734 | 3726 | | |
3735 | 3727 | | |
| |||
0 commit comments