mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 08:27:49 +08:00
Merge branch 'master' into more-metadata-fields
This commit is contained in:
commit
7fd26ff3b0
@ -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());
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user