mirror of
https://github.com/ppy/osu
synced 2024-12-17 20:35:21 +00:00
Add basic searching by source test
This commit is contained in:
parent
bf2e0ed005
commit
c2b08beae8
@ -148,6 +148,7 @@ namespace osu.Game.Tests.NonVisual.Filtering
|
||||
[TestCase("tags too", false)]
|
||||
[TestCase("version", false)]
|
||||
[TestCase("an auteur", true)]
|
||||
[TestCase("unit", false)]
|
||||
public void TestCriteriaMatchingTerms(string terms, bool filtered)
|
||||
{
|
||||
var exampleBeatmapInfo = getExampleBeatmap();
|
||||
@ -175,6 +176,7 @@ namespace osu.Game.Tests.NonVisual.Filtering
|
||||
[TestCase("\"Artist\"!", true)]
|
||||
[TestCase("\"The Artist\"!", false)]
|
||||
[TestCase("\"the artist\"!", false)]
|
||||
[TestCase("\"unit tests\"!", false)]
|
||||
[TestCase("\"\\\"", true)] // nasty case, covers properly escaping user input in underlying regex.
|
||||
public void TestCriteriaMatchingExactTerms(string terms, bool filtered)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user