aboutsummaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
authorEvgeny Kuznetsov <evgeny@kuznetsov.md>2021-04-29 14:55:11 +0300
committerEvgeny Kuznetsov <evgeny@kuznetsov.md>2021-04-29 14:55:11 +0300
commit1809b58c4635cfab219ae01161ff9fbc983a90b2 (patch)
tree21784b5cdc3776c594847af372797d662005e245 /main_test.go
parentb50d7518e1b9dc66210b53bf0e6a85e8c003896e (diff)
parent78a1051821b1a7d6b9affcb7355f7c33020f902e (diff)
downloadradiorus-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.go11
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"))
+}