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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user