aboutsummaryrefslogtreecommitdiffstats
path: root/skate/url_test.go
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-05-14 01:19:01 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-05-14 01:19:01 +0200
commitef1f3ce02b8e4973e83cf43dd9eac1256c0107a1 (patch)
tree6ef7f3e9081b43612e78ee4ec3e8a110d3d42fa7 /skate/url_test.go
parent9faa41e6399ac2ab24b6a10088b1ec0157665959 (diff)
downloadrefcat-ef1f3ce02b8e4973e83cf43dd9eac1256c0107a1.tar.gz
refcat-ef1f3ce02b8e4973e83cf43dd9eac1256c0107a1.zip
add test case
Diffstat (limited to 'skate/url_test.go')
-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 e1e9419..5e36cae 100644
--- a/skate/url_test.go
+++ b/skate/url_test.go
@@ -129,6 +129,8 @@ func TestSanitizeURL(t *testing.T) {
`http://dx.doi.org/10.15210/rmr.v8i14.7485`},
{`Shttp://hdl.handle.net/1765/1163`,
`http://hdl.handle.net/1765/1163`},
+ {`cdec.water.ca.gov/misc/DailyPrecip.html`,
+ `http://cdec.water.ca.gov/misc/DailyPrecip.html`},
}
for _, c := range cases {
out := SanitizeURL(c.in)