1Canonicalization of IPv6 addresses. 2 3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6FAIL canonicalize('http:///') should be http:. Was http:/. 7PASS canonicalize('http://[/') is 'http://[/' 8PASS canonicalize('http://[:/') is 'http://[:/' 9PASS canonicalize('http://]/') is 'http://]/' 10PASS canonicalize('http://:]/') is 'http://:]/' 11PASS canonicalize('http://[]/') is 'http://[]/' 12PASS canonicalize('http://[:]/') is 'http://[:]/' 13PASS canonicalize('http://2001:db8::1/') is 'http://2001:db8::1/' 14PASS canonicalize('http://[2001:db8::1/') is 'http://[2001:db8::1/' 15PASS canonicalize('http://2001:db8::1]/') is 'http://2001:db8::1]/' 16PASS canonicalize('http://[::]/') is 'http://[::]/' 17PASS canonicalize('http://[::1]/') is 'http://[::1]/' 18PASS canonicalize('http://[1::]/') is 'http://[1::]/' 19FAIL canonicalize('http://[::192.168.0.1]/') should be http://[::c0a8:1]/. Was http://[::192.168.0.1]/. 20FAIL canonicalize('http://[::ffff:192.168.0.1]/') should be http://[::ffff:c0a8:1]/. Was http://[::ffff:192.168.0.1]/. 21FAIL canonicalize('http://[000:01:02:003:004:5:6:007]/') should be http://[0:1:2:3:4:5:6:7]/. Was http://[000:01:02:003:004:5:6:007]/. 22FAIL canonicalize('http://[A:b:c:DE:fF:0:1:aC]/') should be http://[a:b:c:de:ff:0:1:ac]/. Was http://[A:b:c:DE:fF:0:1:aC]/. 23FAIL canonicalize('http://[1:0:0:2::3:0]/') should be http://[1::2:0:0:3:0]/. Was http://[1:0:0:2::3:0]/. 24PASS canonicalize('http://[1::2:0:0:3:0]/') is 'http://[1::2:0:0:3:0]/' 25PASS canonicalize('http://[::eeee:192.168.0.1]/') is 'http://[::eeee:192.168.0.1]/' 26PASS canonicalize('http://[2001::192.168.0.1]/') is 'http://[2001::192.168.0.1]/' 27PASS canonicalize('http://[1:2:192.168.0.1:5:6]/') is 'http://[1:2:192.168.0.1:5:6]/' 28FAIL canonicalize('http://[::ffff:192.1.2]/') should be http://[::ffff:c001:2]/. Was http://[::ffff:192.1.2]/. 29FAIL canonicalize('http://[::ffff:0xC0.0Xa8.0x0.0x1]/') should be http://[::ffff:c0a8:1]/. Was http://[::ffff:0xC0.0Xa8.0x0.0x1]/. 30FAIL canonicalize('http://[0:0::0:0:8]/') should be http://[::8]/. Was http://[0:0::0:0:8]/. 31PASS canonicalize('http://[2001:db8::1]/') is 'http://[2001:db8::1]/' 32PASS canonicalize('http://[2001::db8::1]/') is 'http://[2001::db8::1]/' 33PASS canonicalize('http://[2001:db8:::1]/') is 'http://[2001:db8:::1]/' 34PASS canonicalize('http://[:::]/') is 'http://[:::]/' 35PASS canonicalize('http://[2001::.com]/') is 'http://[2001::.com]/' 36PASS canonicalize('http://[::192.168.0.0.1]/') is 'http://[::192.168.0.0.1]/' 37PASS canonicalize('http://[::ffff:192.168.0.0.1]/') is 'http://[::ffff:192.168.0.0.1]/' 38PASS canonicalize('http://[1:2:3:4:5:6:7:8:9]/') is 'http://[1:2:3:4:5:6:7:8:9]/' 39PASS canonicalize('http://[0:0:0:0:0:0:0:192.168.0.1]/') is 'http://[0:0:0:0:0:0:0:192.168.0.1]/' 40PASS canonicalize('http://[1:2:3:4:5:6::192.168.0.1]/') is 'http://[1:2:3:4:5:6::192.168.0.1]/' 41FAIL canonicalize('http://[1:2:3:4:5:6::8]/') should be http://[1:2:3:4:5:6:0:8]/. Was http://[1:2:3:4:5:6::8]/. 42PASS canonicalize('http://[1:2:3:4:5:6:7:8:]/') is 'http://[1:2:3:4:5:6:7:8:]/' 43PASS canonicalize('http://[1:2:3:4:5:6:192.168.0.1:]/') is 'http://[1:2:3:4:5:6:192.168.0.1:]/' 44PASS canonicalize('http://[-1:2:3:4:5:6:7:8]/') is 'http://[-1:2:3:4:5:6:7:8]/' 45FAIL canonicalize('http://[1::%1]/') should be http://[1::%251]/. Was http://[1::%1]/. 46FAIL canonicalize('http://[1::%eth0]/') should be http://[1::%25eth0]/. Was http://[1::%eth0]/. 47FAIL canonicalize('http://[1::%]/') should be http://[1::%25]/. Was http://[1::%]/. 48FAIL canonicalize('http://[%]/') should be http://[%25]/. Was http://[%]/. 49FAIL canonicalize('http://[::%:]/') should be http://[::%25:]/. Was http://[::%:]/. 50PASS canonicalize('http://[:0:0::0:0:8]/') is 'http://[:0:0::0:0:8]/' 51PASS canonicalize('http://[0:0::0:0:8:]/') is 'http://[0:0::0:0:8:]/' 52PASS canonicalize('http://[:0:0::0:0:8:]/') is 'http://[:0:0::0:0:8:]/' 53PASS canonicalize('http://[::192.168..1]/') is 'http://[::192.168..1]/' 54FAIL canonicalize('http://[::1 hello]/') should be http://[::1%20hello]/. Was http://[::1 hello]/. 55PASS successfullyParsed is true 56 57TEST COMPLETE 58 59