Open tony-go opened 3 months ago
What is your view on the finaly goal @jviotti ?
I would like to share my vision about my previous comment.
I'd rather go for the second option, for two reasons:
jsontoolkit
. What I mean is that if we wait to have a full standalone suite before replacing uriparser
, it could take a lot of time as once we finally have it we would like to make it review by fellow engineers...In a one word my vision is to do a first research, extract all what we can from these, open PR (like this one) and then continue to do research on side while we move forward on critical topics for the project.
@tony-go Sorry if I wasn't clear at the beginning. I indeed meant enriching our test suite with more tests, borrowing test suites from other places. The idea being that if we want to get rid of uriparser
, let's have a more comprehensive set of tests (vs the basic ones I had right now) so we make sure we avoid pitfalls on complex areas like parsing or resolution.
Some other test suites I know:
uriparser
itself has some interesting ones: https://github.com/uriparser/uriparser/blob/master/test/test.cpp, and https://github.com/uriparser/uriparser/blob/master/test/FourSuite.cppI think we can re-adapt many of those rather quickly with some ChatGPT/Claude help :D Then we'll be super confident when doing larger changes on the module, and eventually extracting it into URI Kit.
As much we move forward on #710, we figured out that writing a good tests suit is essential.
We want to have a test suit for RFC3986 URI https://www.rfc-editor.org/rfc/rfc3986! The goal of this issue is to gather every piece of information we could find on the topic.