From aa8f99bb1ae566102b69d468e0aacf2f92341efc Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sat, 2 Apr 2022 22:33:18 +0200 Subject: [PATCH] Search: Remove invalid tests from photos_filter_day_test.go #1994 --- internal/search/photos_filter_day_test.go | 53 ----------------------- 1 file changed, 53 deletions(-) diff --git a/internal/search/photos_filter_day_test.go b/internal/search/photos_filter_day_test.go index 70717278e..b1da4044e 100644 --- a/internal/search/photos_filter_day_test.go +++ b/internal/search/photos_filter_day_test.go @@ -61,33 +61,6 @@ func TestPhotosFilterDay(t *testing.T) { } assert.Equal(t, len(photos), 5) }) - //TODO - /*t.Run("1 or 17", func(t *testing.T) { - var f form.SearchPhotos - - f.Day = "1 or 17" - f.Merged = true - - photos, _, err := Photos(f) - - if err != nil { - t.Fatal(err) - } - assert.Equal(t, len(photos), 5) - }) - t.Run("1 OR 17", func(t *testing.T) { - var f form.SearchPhotos - - f.Day = "1 OR 17" - f.Merged = true - - photos, _, err := Photos(f) - - if err != nil { - t.Fatal(err) - } - assert.Equal(t, len(photos), 5) - })*/ var f0 form.SearchPhotos f0.Merged = true @@ -385,33 +358,7 @@ func TestPhotosQueryDay(t *testing.T) { } assert.Equal(t, len(photos), 5) }) - //TODO - /*t.Run("1 or 17", func(t *testing.T) { - var f form.SearchPhotos - f.Query = "day:\"1 or 17\"" - f.Merged = true - - photos, _, err := Photos(f) - - if err != nil { - t.Fatal(err) - } - assert.Equal(t, len(photos), 5) - }) - t.Run("1 OR 17", func(t *testing.T) { - var f form.SearchPhotos - - f.Query = "day:\"1 OR 17\"" - f.Merged = true - - photos, _, err := Photos(f) - - if err != nil { - t.Fatal(err) - } - assert.Equal(t, len(photos), 5) - })*/ var f0 form.SearchPhotos f0.Merged = true