{ "files": [ { "name": "éclair.txt", "path": "docs", "size": 1 }, { "name": "İ.txt", "path": "", "size": 2 }, { "name": "ΟΣ.txt", "path": "greek/ΣΙ", "size": 3 }, { "name": "😀.txt", "path": "", "size": 4 }, { "name": "[x].txt", "path": "literal", "size": 5 }, { "name": "README.md", "path": "nested/docs", "size": 6 } ], "cases": [ { "query": "", "expected": [] }, { "query": "q=", "expected": [] }, { "query": "q=a", "expected": [] }, { "query": "q=%C3%A9", "expected": [] }, { "query": "q=%C4%B0", "expected": [] }, { "query": "q=i%CC%87", "expected": [ { "name": "İ.txt", "path": "", "size": 2 } ] }, { "query": "q=%CE%9F%CE%A3", "expected": [] }, { "query": "q=%CE%BF%CF%83", "expected": [ { "name": "ΟΣ.txt", "path": "greek/ΣΙ", "size": 3 } ] }, { "query": "q=%CE%BF%CF%82", "expected": [] }, { "query": "q=%CE%A3%CE%99", "expected": [ { "name": "ΟΣ.txt", "path": "greek/ΣΙ", "size": 3 } ] }, { "query": "q=%F0%9F%98%80", "expected": [ { "name": "😀.txt", "path": "", "size": 4 } ] }, { "query": "q=%20%5Bx%5D%20", "expected": [ { "name": "[x].txt", "path": "literal", "size": 5 } ] }, { "query": "q=%EF%BB%BFREADME%EF%BB%BF", "expected": [ { "name": "README.md", "path": "nested/docs", "size": 6 } ] }, { "query": "q=%C2%85README%C2%85", "expected": [] }, { "query": "q=docs", "expected": [ { "name": "éclair.txt", "path": "docs", "size": 1 }, { "name": "README.md", "path": "nested/docs", "size": 6 } ] }, { "query": "q=nested%2Fdocs", "expected": [] }, { "query": "q=%25FF", "expected": [] }, { "query": "q[]=README", "error": true }, { "query": "q=README&q=docs", "error": true }, { "query": "q[x]=README", "error": true }, { "query": "q[]=", "error": true }, { "query": "q=README&q[]=docs", "error": true } ] }