@@ -21,6 +21,33 @@ const testCases = [
2121 ]
2222 ]
2323 ] ,
24+ [
25+ 'pairs' ,
26+ `filter:vine exclude:retweets min_replies:100 lang:es to:jack since:2016-01-01
27+ -filter:vine -exclude:retweets -min_replies:100 -lang:es -to:jack -since:2016-01-01` ,
28+ [
29+ [ 'Including' , [ 'Pair' , 'filter' , 'vine' ] ] ,
30+ [ 'Including' , [ 'Pair' , 'exclude' , 'retweets' ] ] ,
31+ [ 'Including' , [ 'Pair' , 'min_replies' , '100' ] ] ,
32+ [ 'Including' , [ 'Pair' , 'lang' , 'es' ] ] ,
33+ [ 'Including' , [ 'Pair' , 'to' , 'jack' ] ] ,
34+ [ 'Including' , [ 'Pair' , 'since' , '2016-01-01' ] ] ,
35+ [ 'Excluding' , [ 'Pair' , 'filter' , 'vine' ] ] ,
36+ [ 'Excluding' , [ 'Pair' , 'exclude' , 'retweets' ] ] ,
37+ [ 'Excluding' , [ 'Pair' , 'min_replies' , '100' ] ] ,
38+ [ 'Excluding' , [ 'Pair' , 'lang' , 'es' ] ] ,
39+ [ 'Excluding' , [ 'Pair' , 'to' , 'jack' ] ] ,
40+ [ 'Excluding' , [ 'Pair' , 'since' , '2016-01-01' ] ]
41+ ]
42+ ] ,
43+ [
44+ 'list' ,
45+ 'list:beep/boop -list:beep/boop' ,
46+ [
47+ [ 'Including' , [ 'List' , 'beep' , 'boop' ] ] ,
48+ [ 'Excluding' , [ 'List' , 'beep' , 'boop' ] ]
49+ ]
50+ ] ,
2451 [
2552 'extreme example' ,
2653 `search #search @search -query filter:vine exclude:retweets exclude:nativeretweets
@@ -33,17 +60,29 @@ const testCases = [
3360 [ 'Including' , [ 'Text' , '#search' ] ] ,
3461 [ 'Including' , [ 'Text' , '@search' ] ] ,
3562 [ 'Excluding' , [ 'Text' , 'query' ] ] ,
36- [ 'Pair' , 'filter' , 'vine' ] ,
37- [ 'Pair' , 'exclude' , 'retweets' ] ,
38- [ 'Pair' , 'exclude' , 'nativeretweets' ] ,
39- [ 'Or' , [ [ 'Pair' , 'min_replies' , '10' ] , [ 'Pair' , 'min_retweets' , '100' ] ] ] ,
40- [ 'Pair' , 'min_faves' , '20' ] ,
41- [ 'Or' , [ [ 'Pair' , 'lang' , 'es' ] , [ 'Pair' , 'to' , 'jack' ] ] ] ,
63+ [ 'Including' , [ 'Pair' , 'filter' , 'vine' ] ] ,
64+ [ 'Including' , [ 'Pair' , 'exclude' , 'retweets' ] ] ,
65+ [ 'Including' , [ 'Pair' , 'exclude' , 'nativeretweets' ] ] ,
66+ [
67+ 'Or' ,
68+ [
69+ [ 'Including' , [ 'Pair' , 'min_replies' , '10' ] ] ,
70+ [ 'Including' , [ 'Pair' , 'min_retweets' , '100' ] ]
71+ ]
72+ ] ,
73+ [ 'Including' , [ 'Pair' , 'min_faves' , '20' ] ] ,
74+ [
75+ 'Or' ,
76+ [
77+ [ 'Including' , [ 'Pair' , 'lang' , 'es' ] ] ,
78+ [ 'Including' , [ 'Pair' , 'to' , 'jack' ] ]
79+ ]
80+ ] ,
4281 [ 'IsQuestion' , true ] ,
43- [ 'Pair' , 'since' , '2016-01-01' ] ,
44- [ 'Pair' , 'until' , '2016-02-01' ] ,
45- [ 'List' , 'NASA' , 'astronauts-in-space-now' ] ,
46- [ 'Pair' , 'filter' , 'verified' ] ,
82+ [ 'Including' , [ ' Pair', 'since' , '2016-01-01' ] ] ,
83+ [ 'Including' , [ ' Pair', 'until' , '2016-02-01' ] ] ,
84+ [ 'Including' , [ ' List', 'NASA' , 'astronauts-in-space-now' ] ] ,
85+ [ 'Including' , [ ' Pair', 'filter' , 'verified' ] ] ,
4786 [
4887 'Or' ,
4988 [
0 commit comments