Add test cases covering full phrase case insensitivity

This commit is contained in:
Bartłomiej Dach 2023-06-27 21:38:36 +02:00
parent bf99fc61b8
commit bca1a91087
No known key found for this signature in database

View File

@ -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();