diff options
author | Evgeny Kuznetsov <evgeny@kuznetsov.md> | 2020-01-28 00:45:33 +0300 |
---|---|---|
committer | Evgeny Kuznetsov <evgeny@kuznetsov.md> | 2020-01-28 00:45:33 +0300 |
commit | 85ffd20221fcf978f55b7bd4e75f22923340f87d (patch) | |
tree | c4da2ea30cfd8d4113e77d10dabb0ce1fa71d872 /main_test.go | |
parent | 93204ba85cde21c5aa2d5889eddeb5b2e9b7d035 (diff) | |
download | radiorus-rss-85ffd20221fcf978f55b7bd4e75f22923340f87d.tar.gz radiorus-rss-85ffd20221fcf978f55b7bd4e75f22923340f87d.zip |
remove redundant test
Diffstat (limited to 'main_test.go')
-rw-r--r-- | main_test.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/main_test.go b/main_test.go index cde6e7b..6f2ea11 100644 --- a/main_test.go +++ b/main_test.go @@ -37,22 +37,6 @@ func helperLoadBytes(t *testing.T, name string) []byte { return bytes } -func TestCleanText(t *testing.T) { - about := helperLoadBytes(t, "about") - actual := cleanText(about) - golden := filepath.Join("testdata", t.Name()+".golden") - if *update { - if err := ioutil.WriteFile(golden, actual, 0644); err != nil { - t.Fatal(err) - } - } - expected, _ := ioutil.ReadFile(golden) - - if !bytes.Equal(actual, expected) { - t.Fail() - } -} - func TestFeed(t *testing.T) { page := helperLoadBytes(t, "episodes") page = cleanText(page) |