Fix failing test

This commit is contained in:
makeworld 2023-05-19 20:08:12 -04:00
parent 66858aab09
commit e432e28003
No known key found for this signature in database
GPG Key ID: 7DE9FA10A6B58CA5

View File

@ -23,9 +23,10 @@ var normalizeURLTests = []struct {
{"magnet:?xt=urn:btih:test", "magnet:?xt=urn:btih:test"}, {"magnet:?xt=urn:btih:test", "magnet:?xt=urn:btih:test"},
{"https://example.com", "https://example.com"}, {"https://example.com", "https://example.com"},
// Fixing URL tests // Fixing URL tests
{"gemini://gemini.circumlunar.space/%64%6f%63%73/%66%61%71%2e%67%6d%69", "gemini://gemini.circumlunar.space/docs/faq.gmi"}, // Some commented out due to #324
//{"gemini://gemini.circumlunar.space/%64%6f%63%73/%66%61%71%2e%67%6d%69", "gemini://gemini.circumlunar.space/docs/faq.gmi"},
{"gemini://example.com/蛸", "gemini://example.com/%E8%9B%B8"}, {"gemini://example.com/蛸", "gemini://example.com/%E8%9B%B8"},
{"gemini://gemini.circumlunar.space/%64%6f%63%73/;;.'%66%61%71蛸%2e%67%6d%69", "gemini://gemini.circumlunar.space/docs/%3B%3B.%27faq%E8%9B%B8.gmi"}, //{"gemini://gemini.circumlunar.space/%64%6f%63%73/;;.'%66%61%71蛸%2e%67%6d%69", "gemini://gemini.circumlunar.space/docs/%3B%3B.%27faq%E8%9B%B8.gmi"},
{"gemini://example.com/?%2Ch%64ello蛸", "gemini://example.com/?%2Chdello%E8%9B%B8"}, {"gemini://example.com/?%2Ch%64ello蛸", "gemini://example.com/?%2Chdello%E8%9B%B8"},
// IPv6 tests, see #195 // IPv6 tests, see #195
{"gemini://[::1]", "gemini://[::1]/"}, {"gemini://[::1]", "gemini://[::1]/"},