I wrote some interesting tests in https://bugs.webkit.org/show_bug.cgi?id=144194 <https://bugs.webkit.org/show_bug.cgi?id=144194> and some of the non-ASCII tests can be better viewed https://trac.webkit.org/browser/trunk/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp <https://trac.webkit.org/browser/trunk/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp> because our bugzilla patch viewer UTF-8 encodes them. Feel free to take any or all of those tests. As mentioned in that bug, I based my IDNA tests on these references:
http://unicode.org/faq/idn.html and http://www.unicode.org/reports/tr46/#IDNAComparison have IDNA2003/2008 differences
https://tools.ietf.org/html/rfc5893 has Bidi examples
https://tools.ietf.org/html/rfc5892 has ContextO examples
http://www.unicode.org/Public/idna/9.0.0/IdnaTest.txt has a bunch of interesting domains
> On Jan 5, 2017, at 11:59 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
>
> Hi,
>
> I was wondering if any of you were aware of existing tests for the
> ToASCII and ToUnicode algorithms. I'm planning on adding some to Web
> Platform Tests, but if there are existing tests that can be ported
> that would be good to know.
>
> Kind regards,
>
>
> --
> https://annevankesteren.nl/