Skip to content

Commit

Permalink
Unicode path name character tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jun 4, 2024
1 parent e796ace commit dfa4451
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,24 @@ const PARSER_TESTS: ParserTestSet[] = [
{ name: "test", prefix: "/", suffix: "", pattern: "", modifier: "" },
],
},
{
path: "/:0",
expected: [
{ name: "0", prefix: "/", suffix: "", pattern: "", modifier: "" },
],
},
{
path: "/:_",
expected: [
{ name: "_", prefix: "/", suffix: "", pattern: "", modifier: "" },
],
},
{
path: "/:café",
expected: [
{ name: "café", prefix: "/", suffix: "", pattern: "", modifier: "" },
],
},
];

const COMPILE_TESTS: CompileTestSet[] = [
Expand Down

0 comments on commit dfa4451

Please sign in to comment.