1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Merge branch 'master' into more-metadata-fields

This commit is contained in:
Bartłomiej Dach 2021-06-11 06:35:51 +02:00
commit 7fd26ff3b0
2 changed files with 5 additions and 3 deletions

View File

@ -33,10 +33,11 @@ namespace osu.Game.Tests.NonVisual.Filtering
* outside of the range.
*/
[Test]
public void TestApplyStarQueries()
[TestCase("star")]
[TestCase("stars")]
public void TestApplyStarQueries(string variant)
{
const string query = "stars<4 easy";
string query = $"{variant}<4 easy";
var filterCriteria = new FilterCriteria();
FilterQueryParser.ApplyQueries(filterCriteria, query);
Assert.AreEqual("easy", filterCriteria.SearchText.Trim());

View File

@ -37,6 +37,7 @@ namespace osu.Game.Screens.Select
{
switch (key)
{
case "star":
case "stars":
return TryUpdateCriteriaRange(ref criteria.StarDifficulty, op, value, 0.01d / 2);