mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Add test coverage
This commit is contained in:
parent
ca0819cf7a
commit
96711eb185
@ -274,10 +274,12 @@ namespace osu.Game.Tests.NonVisual.Filtering
|
||||
Assert.IsTrue(filterCriteria.OnlineStatus.IsUpperInclusive);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestApplyCreatorQueries()
|
||||
[TestCase("creator")]
|
||||
[TestCase("author")]
|
||||
[TestCase("mapper")]
|
||||
public void TestApplyCreatorQueries(string keyword)
|
||||
{
|
||||
const string query = "beatmap specifically by creator=my_fav";
|
||||
string query = $"beatmap specifically by {keyword}=my_fav";
|
||||
var filterCriteria = new FilterCriteria();
|
||||
FilterQueryParser.ApplyQueries(filterCriteria, query);
|
||||
Assert.AreEqual("beatmap specifically by", filterCriteria.SearchText.Trim());
|
||||
|
Loading…
Reference in New Issue
Block a user