1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 06:09:55 +08:00

Add test cases covering full phrase case insensitivity

This commit is contained in:
Bartłomiej Dach
2023-06-27 21:38:36 +02:00
Unverified
parent bf99fc61b8
commit bca1a91087
@@ -171,6 +171,7 @@ namespace osu.Game.Tests.NonVisual.Filtering
[TestCase("\"an auteur\"", true)]
[TestCase("\"Artist\"!", true)]
[TestCase("\"The Artist\"!", false)]
[TestCase("\"the artist\"!", false)]
[TestCase("\"\\\"", true)] // nasty case, covers properly escaping user input in underlying regex.
public void TestCriteriaMatchingExactTerms(string terms, bool filtered)
{
@@ -238,6 +239,7 @@ namespace osu.Game.Tests.NonVisual.Filtering
[TestCase("unknown", true)]
[TestCase("\"Artist\"!", true)]
[TestCase("\"The Artist\"!", false)]
[TestCase("\"the artist\"!", false)]
public void TestCriteriaMatchingArtist(string artistName, bool filtered)
{
var exampleBeatmapInfo = getExampleBeatmap();