From 6de62876636475049b3f4b78eac319c92b73d0d5 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 6 Oct 2021 18:02:51 +0100 Subject: [PATCH] add a test to cover multiple non-existent negative tags --- ext/index/test.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/index/test.php b/ext/index/test.php index 41899214..6e625aae 100644 --- a/ext/index/test.php +++ b/ext/index/test.php @@ -205,6 +205,12 @@ class IndexTest extends ShimmiePHPUnitTestCase // negative tag alone, should work $this->assert_search_results(["-pbx"], [$image_ids[1]]); + + // negative that doesn't exist + $this->assert_search_results(["-not_a_tag"], [$image_ids[1], $image_ids[0]]); + + // multiple negative tags that don't exist + $this->assert_search_results(["-not_a_tag", "-also_not_a_tag"], [$image_ids[1], $image_ids[0]]); } // This isn't really an index thing, we just want to test this from