aboutsummaryrefslogtreecommitdiffstats
path: root/skate
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-05-12 21:12:47 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-05-12 21:12:47 +0200
commit245db6bb42eff602f710e2da7d49c340cc889f9e (patch)
treeddb5326eae129746e0357f87e5fc805706e23d0e /skate
parent506b959daa6a822378570826c670a658a1cf75d4 (diff)
downloadrefcat-245db6bb42eff602f710e2da7d49c340cc889f9e.tar.gz
refcat-245db6bb42eff602f710e2da7d49c340cc889f9e.zip
add test case
Diffstat (limited to 'skate')
-rw-r--r--skate/url_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/skate/url_test.go b/skate/url_test.go
index 76992c1..8dddb09 100644
--- a/skate/url_test.go
+++ b/skate/url_test.go
@@ -96,6 +96,8 @@ func TestSanitizeURL(t *testing.T) {
`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`},
+ {`http://ainfo.cnptia.embrapa.br/digital/bitstream/CNPAT-2010/8608/1/Ci-017.pdfAcessed06`,
+ `http://ainfo.cnptia.embrapa.br/digital/bitstream/CNPAT-2010/8608/1/Ci-017.pdf`},
}
for _, c := range cases {
out := SanitizeURL(c.in)