diff options
author | Evgeny Kuznetsov <evgeny@kuznetsov.md> | 2021-04-29 14:55:11 +0300 |
---|---|---|
committer | Evgeny Kuznetsov <evgeny@kuznetsov.md> | 2021-04-29 14:55:11 +0300 |
commit | 1809b58c4635cfab219ae01161ff9fbc983a90b2 (patch) | |
tree | 21784b5cdc3776c594847af372797d662005e245 /main_test.go | |
parent | b50d7518e1b9dc66210b53bf0e6a85e8c003896e (diff) | |
parent | 78a1051821b1a7d6b9affcb7355f7c33020f902e (diff) | |
download | radiorus-rss-1809b58c4635cfab219ae01161ff9fbc983a90b2.tar.gz radiorus-rss-1809b58c4635cfab219ae01161ff9fbc983a90b2.zip |
Merge branch 'master' of github.com:nekr0z/radiorus-rss
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")) +} |