summaryrefslogtreecommitdiff
path: root/href_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'href_test.go')
-rw-r--r--href_test.go28
1 files changed, 6 insertions, 22 deletions
diff --git a/href_test.go b/href_test.go
index 430eafc..7ce72a1 100644
--- a/href_test.go
+++ b/href_test.go
@@ -4,29 +4,13 @@ import "testing"
func TestTitle(t *testing.T) {
testCases := []struct {
- url string
- title string
+ url, title string
}{
- {
- url: `https://www.linux.org.ru`,
- title: `LINUX.ORG.RU - Русская информация об ОС Linux`,
- },
- {
- url: `http://www.opennet.ru`,
- title: `Проект OpenNet - всё, что связано с открытым ПО, открытыми технологиями, Linux, BSD и Unix`,
- },
- {
- url: `http://www.openbsd.org`,
- title: `OpenBSD`,
- },
- {
- url: `http://undeadly.org`,
- title: `OpenBSD Journal: A resource for the OpenBSD community`,
- },
- {
- url: `https://github.com/dls/house/blob/master/kernel/SimpleExec.hs`,
- title: `house/SimpleExec.hs at master · dls/house · GitHub`,
- },
+ {`https://www.linux.org.ru`, `LINUX.ORG.RU - Русская информация об ОС Linux`},
+ {`http://www.opennet.ru`, `Проект OpenNet - всё, что связано с открытым ПО, открытыми технологиями, Linux, BSD и Unix`},
+ {`http://www.openbsd.org`, `OpenBSD`},
+ {`http://undeadly.org`, `OpenBSD Journal: A resource for the OpenBSD community`},
+ {`https://github.com/dls/house/blob/master/kernel/SimpleExec.hs`, `house/SimpleExec.hs at master · dls/house · GitHub`},
}
for _, tc := range testCases {
t.Run(tc.url, func(t *testing.T) {