mirror of https://github.com/ppy/osu
Add basic searching by source test
This commit is contained in:
parent
bf2e0ed005
commit
c2b08beae8
|
@ -148,6 +148,7 @@ public void TestCriteriaMatchingRangeMax(bool inclusive)
|
|||
[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 @@ public void TestCriteriaMatchingTerms(string terms, bool filtered)
|
|||
[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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue