From c300ef4b6c0911f3ca6631300e78f3db16ba06eb Mon Sep 17 00:00:00 2001 From: Evgeny Kuznetsov Date: Wed, 29 Jan 2020 09:56:21 +0300 Subject: don't make feed title a link --- main_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'main_test.go') diff --git a/main_test.go b/main_test.go index b3d1b7f..ce58e2a 100644 --- a/main_test.go +++ b/main_test.go @@ -226,3 +226,22 @@ func TestEpisodeID(t *testing.T) { } } } + +func TestStripLink(t *testing.T) { + type testval struct { + raw string + ret string + } + + var tests = []testval{ + {`"Аэростат"`, `"Аэростат"`}, + } + + for _, test := range tests { + got := stripLink(test.raw) + want := test.ret + if got != want { + t.Error("want:", want, "got:", got) + } + } +} -- cgit v1.2.3