From d285d4c97d5623840bae833e5d09a8810ecfab19 Mon Sep 17 00:00:00 2001 From: Evgeny Kuznetsov Date: Sat, 26 Dec 2020 16:52:53 +0300 Subject: extensive episode descriptions --- main_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'main_test.go') diff --git a/main_test.go b/main_test.go index 2a2c3b8..4f465f3 100644 --- a/main_test.go +++ b/main_test.go @@ -69,7 +69,7 @@ func assertGolden(t *testing.T, actual []byte, golden string) { } if !bytes.Equal(actual, expected) { - t.Fail() + t.Fatal("golden data doesn't match") } } @@ -380,3 +380,12 @@ func TestParseErrors(t *testing.T) { } } } + +func TestProcessEpisodeDesc(t *testing.T) { + page := helperLoadBytes(t, "blues") + got, err := processEpisodeDesc(page) + if err != nil { + t.Fatal(err) + } + assertGolden(t, []byte(got), filepath.Join("testdata", "blues.golden")) +} -- cgit v1.2.3