Add thousands separator to rank range pill

This commit is contained in:
smoogipoo
2021-08-05 21:40:09 +09:00
parent c74e620ce9
commit fd6d488657
2 changed files with 33 additions and 2 deletions

View File

@ -63,5 +63,33 @@ namespace osu.Game.Tests.Visual.Multiplayer
Client.RemoveUser(API.LocalUser.Value);
});
}
[TestCase(1, 10)]
[TestCase(10, 100)]
[TestCase(100, 1000)]
[TestCase(1000, 10000)]
[TestCase(10000, 100000)]
[TestCase(100000, 1000000)]
[TestCase(1000000, 10000000)]
public void TestRange(int min, int max)
{
AddStep("add users", () =>
{
Client.AddUser(new User
{
Id = 2,
Statistics = { GlobalRank = min }
});
Client.AddUser(new User
{
Id = 3,
Statistics = { GlobalRank = max }
});
// Remove the local user so only the ones above are displayed.
Client.RemoveUser(API.LocalUser.Value);
});
}
}
}