RFC 5952 describes how literal IPv6 addresses should (or MUST) be written.  This code checks whether a given system's parsing and printing routines conform to this specification.