1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 21:10:46 +08:00

Add basic searching by source test

This commit is contained in:
Joseph Madamba
2024-11-15 22:52:27 -08:00
Unverified
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)
{