Commit 3a786f3
committed
test: add edge-case coverage for literal handling and anchoring
Ports three test scenarios from the TypeScript SDK:
- Repeated-slash literals (///{a}////{b}////) preserved exactly and
rejected when slash count differs
- Trailing extra path component rejected (/users/{id} vs
/users/123/extra); guards against a refactor from fullmatch to
match or search
- Adjacent variables with prefix-overlapping names ({var}{vara});
documents the greedy capture split and confirms positional groups
map to the correct dict keys1 parent 3b8aadd commit 3a786f3
File tree
1 file changed
+19
-0
lines changed1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
| 349 | + | |
348 | 350 | | |
349 | 351 | | |
350 | 352 | | |
| |||
359 | 361 | | |
360 | 362 | | |
361 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
362 | 370 | | |
363 | 371 | | |
364 | 372 | | |
365 | 373 | | |
366 | 374 | | |
367 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
368 | 387 | | |
369 | 388 | | |
370 | 389 | | |
| |||
0 commit comments