diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-05-12 22:27:56 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-05-12 22:27:56 +0200 |
commit | 0471704cccb6a6ce950d68dbc5debb9be7db2286 (patch) | |
tree | fda7d85cbef9e30b6169ec85f92325786ce072f4 /skate/url_test.go | |
parent | ae3f3f3fba70dbf986f3a79a06fef8f09263360b (diff) | |
download | refcat-0471704cccb6a6ce950d68dbc5debb9be7db2286.tar.gz refcat-0471704cccb6a6ce950d68dbc5debb9be7db2286.zip |
address raw urls, w/o http prefix
Diffstat (limited to 'skate/url_test.go')
-rw-r--r-- | skate/url_test.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/skate/url_test.go b/skate/url_test.go index c138a0e..42ec45b 100644 --- a/skate/url_test.go +++ b/skate/url_test.go @@ -30,7 +30,7 @@ func TestSanitizeURL(t *testing.T) { {`http://140.120.197.173/Ecology/Download/Timing-MSChart.zipJournalofInsectScience`, `http://140.120.197.173/Ecology/Download/Timing-MSChart.zip`}, {`141.213.232.243/bitstream/handle/2027.42/86336/apterc_1.pdf?sequence=1`, - `141.213.232.243/bitstream/handle/2027.42/86336/apterc_1.pdf?sequence=1`}, + `http://141.213.232.243/bitstream/handle/2027.42/86336/apterc_1.pdf?sequence=1`}, {`http://141.232.10.32/pm/recover/recover_docs/perf_measures/062812_rec_pm_scs_salinity_flbay.pdfRECOVER`, `http://141.232.10.32/pm/recover/recover_docs/perf_measures/062812_rec_pm_scs_salinity_flbay.pdf`}, {`http://2010.census.gov/news/releases/operations/cb11-cn125.html.lastaccessed4`, @@ -98,6 +98,12 @@ func TestSanitizeURL(t *testing.T) { `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`}, + {`12s`, ``}, + {`12spoaspdop`, ``}, + {`0.0.www.epcglobalinc.org/standards_technology/Secure/v1.0/UHF-class1.pdf`, + `http://www.epcglobalinc.org/standards_technology/Secure/v1.0/UHF-class1.pdf`}, + {`CRAN.R-project.org/package=vegan`, + `http://CRAN.R-project.org/package=vegan`}, } for _, c := range cases { out := SanitizeURL(c.in) |