Skip to content

Commit 390d752

Browse files
committedMar 24, 2025
add tag parsing test
1 parent 8d8a76f commit 390d752

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

Diff for: ‎tests/Libraries/Search/BeatmapsetQueryParserTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public static function queryDataProvider()
4646
['ranked>="2020-07-21 12:30:30 +09:00"', ['keywords' => null, 'options' => ['ranked' => ['gte' => static::parseTime('2020-07-21 03:30:30')]]]],
4747
['ranked="2020-07-21 12:30:30 +09:00"', ['keywords' => null, 'options' => ['ranked' => ['gte' => static::parseTime('2020-07-21 03:30:30'), 'lt' => static::parseTime('2020-07-21 03:30:31')]]]],
4848
['ranked="invalid date format"', ['keywords' => 'ranked="invalid date format"', 'options' => []]],
49+
['tag=hello', ['keywords' => null, 'options' => ['tag' => ['hello']]]],
50+
['tag=hello tag=world', ['keywords' => null, 'options' => ['tag' => ['hello', 'world']]]],
51+
['tag="hello world"', ['keywords' => null, 'options' => ['tag' => ['hello world']]]],
4952

5053
// multiple options
5154
['artist=hello creator:world', ['keywords' => null, 'options' => ['artist' => 'hello', 'creator' => 'world']]],

0 commit comments

Comments
 (0)