Add basic searching by source test

This commit is contained in:
Joseph Madamba 2024-11-15 22:52:27 -08:00
parent bf2e0ed005
commit c2b08beae8
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -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)
{