From ca84f2f360172f52a57bd67a265509df68a13a50 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 3 Jan 2018 01:50:48 +0100 Subject: shorten --- href_test.go | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) (limited to 'href_test.go') 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) { -- cgit v1.2.3