mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Fix tests specifying float precision for double bindable
Would cause assignments to `.Value` to become imprecise even if the underlying bindable could represent the value 100% accurately.
This commit is contained in:
parent
910d74fdda
commit
96437c4518
@ -20,7 +20,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
|
|
||||||
private readonly BindableDouble current = new BindableDouble(5)
|
private readonly BindableDouble current = new BindableDouble(5)
|
||||||
{
|
{
|
||||||
Precision = 0.1f,
|
Precision = 0.1,
|
||||||
MinValue = 0,
|
MinValue = 0,
|
||||||
MaxValue = 15
|
MaxValue = 15
|
||||||
};
|
};
|
||||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
|
|
||||||
private readonly BindableDouble current = new BindableDouble(5)
|
private readonly BindableDouble current = new BindableDouble(5)
|
||||||
{
|
{
|
||||||
Precision = 0.1f,
|
Precision = 0.1,
|
||||||
MinValue = 0,
|
MinValue = 0,
|
||||||
MaxValue = 15
|
MaxValue = 15
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user