Are special characters allowed in the scheme?

I wrote a test, where the scheme of the URI contained special chars ($,&…) and expected it to fail at parsing. However, the correct Implemenation of the daily tests told me, that it could parse the scheme. So, are special chars allowed in the scheme?

EDIT 1: Or rather are they parsed?

1 Like

Have a look at the project presentation slides, there is a specification of the grammer and legal characters on slide 5 (page 8 of the pdf).

Also, look carefully at what you assert to be null or not null.
Look at the given tests like testNegativeSimple (as opposed to prog2.tests.pub.UriParserTests::testNull which tests something different).