diff options
author | Evgeny Kuznetsov <evgeny@kuznetsov.md> | 2020-12-26 16:52:53 +0300 |
---|---|---|
committer | Evgeny Kuznetsov <evgeny@kuznetsov.md> | 2020-12-26 16:52:53 +0300 |
commit | d285d4c97d5623840bae833e5d09a8810ecfab19 (patch) | |
tree | 56ca42054ee8e364a40695b9b670f8f6d081be51 /main_test.go | |
parent | eca62edf9252982f9062fee3b3b9b45708fbc1a4 (diff) | |
download | radiorus-rss-d285d4c97d5623840bae833e5d09a8810ecfab19.tar.gz radiorus-rss-d285d4c97d5623840bae833e5d09a8810ecfab19.zip |
extensive episode descriptions
Diffstat (limited to 'main_test.go')
-rw-r--r-- | main_test.go | 11 |
1 files changed, 10 insertions, 1 deletions
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")) +} |