aboutsummaryrefslogtreecommitdiffstats
path: root/skate/url_test.go
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-05-12 21:10:02 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-05-12 21:10:02 +0200
commit506b959daa6a822378570826c670a658a1cf75d4 (patch)
treeb8c1f1903b0298ac5095883f403258ca3dbc9ad1 /skate/url_test.go
parentd28e0ceb6eb1b7e96236d9b311a6d4c9f2fa0f73 (diff)
downloadrefcat-506b959daa6a822378570826c670a658a1cf75d4.tar.gz
refcat-506b959daa6a822378570826c670a658a1cf75d4.zip
url cleanup: more tests
Diffstat (limited to 'skate/url_test.go')
-rw-r--r--skate/url_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/skate/url_test.go b/skate/url_test.go
index 30462d7..76992c1 100644
--- a/skate/url_test.go
+++ b/skate/url_test.go
@@ -92,6 +92,10 @@ func TestSanitizeURL(t *testing.T) {
`http://aem.asm.org/content/67/6/2766.full.pdf+html`},
{`http://agris.fao.org/agris-search/search.do?recordID=BR2013800115https://doi.org/10.5747/ca.2010.v06.n1.a044`,
`http://agris.fao.org/agris-search/search.do?recordID=BR2013800115`},
+ {`http://ailab.ist.psu.edu/bcpred/SVMTriP:http://sysbio.unl.edu/SVMTriP/prediction.phpBcell`,
+ `http://ailab.ist.psu.edu/bcpred/SVMTriP`},
+ {`http://aim.bmj.com/content/31/1/23.full.pdf+htmlAcessoem:15Dez`,
+ `http://aim.bmj.com/content/31/1/23.full.pdf+html`},
}
for _, c := range cases {
out := SanitizeURL(c.in)