1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-20 11:42:54 +08:00
osu-lazer/osu.Game.Tests/NonVisual
Bartłomiej Dach 70842f71f4 Fix floating point handling in filter intervals
Due to floating-point rounding and representation errors, filters could
wrongly display results incongruous with the wedge display text (ie.
a beatmap with the BPM of 139.99999 would be displayed as having 140
BPM and also pass the bpm<140 filter).

Apply tolerance when parsing floating-point constraints. The tolerance
chosen is half of what the UI displays for the particular values (so
for example half of 0.1 for AR/DR/CS, 0.01 for stars, etc.)

Tests updated accordingly.
2019-09-22 00:20:55 +02:00
..
Filtering Fix floating point handling in filter intervals 2019-09-22 00:20:55 +02:00
DifficultyAdjustmentModCombinationsTest.cs Remove LegacyDifficultyCalculator 2019-02-21 13:12:37 +09:00
FramedReplayInputHandlerTest.cs Enforce frame accuracy for tests 2019-07-10 11:53:34 +09:00
LimitedCapacityStackTest.cs Add tests for LimitedCapacityStack 2019-02-19 14:18:49 +09:00