Skip to content

Commit 582c376

Browse files
committed
add more tests that succeed with std::regex provider
1 parent cc81a77 commit 582c376

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

tests/wpt/urlpatterntestdata.json

+27
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,28 @@
11151115
"hostname": { "input": "xn--caf-dma.com", "groups": {}}
11161116
}
11171117
},
1118+
{
1119+
"pattern": [{"pathname":":a\uDB40\uDD00b"}],
1120+
"inputs": [],
1121+
"expected_obj": {
1122+
"pathname": ":a\uDB40\uDD00b"
1123+
},
1124+
"expected_match": null
1125+
},
1126+
{
1127+
"pattern": [{"pathname":"test/:a\uD801\uDC50b"}],
1128+
"inputs": [{"pathname":"test/foo"}],
1129+
"expected_obj": {
1130+
"pathname": "test/:a\uD801\uDC50b"
1131+
},
1132+
"expected_match": {
1133+
"pathname": { "input": "test/foo", "groups": { "a\uD801\uDC50b": "foo" }}
1134+
}
1135+
},
1136+
{
1137+
"pattern": [{"pathname":":\uD83D\uDEB2"}],
1138+
"expected_obj": "error"
1139+
},
11181140
{
11191141
"pattern": [{ "port": "" }],
11201142
"inputs": [{ "protocol": "http", "port": "80" }],
@@ -2824,5 +2846,10 @@
28242846
"search": { "input": "q=*&v=?&hmm={}&umm=()", "groups": {} },
28252847
"hash": { "input": "foo", "groups": {} }
28262848
}
2849+
},
2850+
{
2851+
"pattern": [{ "pathname": "/([[a-z]--a])" }],
2852+
"inputs": [{ "pathname": "/a" }],
2853+
"expected_match": null
28272854
}
28282855
]

0 commit comments

Comments
 (0)