From 3773ffdf8e74bc50dac7bd545d8d2e5dd55fadf4 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 5 Sep 2021 11:08:28 +0200 Subject: [PATCH] Add additional test for negated tags in or-chains Signed-off-by: trivernis --- tests/wrapper/test_hydrus.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/wrapper/test_hydrus.rs b/tests/wrapper/test_hydrus.rs index 8c2a84f..7f10325 100644 --- a/tests/wrapper/test_hydrus.rs +++ b/tests/wrapper/test_hydrus.rs @@ -2,6 +2,7 @@ use super::super::common; use hydrus_api::api_core::adding_tags::TagAction; use hydrus_api::wrapper::builders::or_chain_builder::OrChainBuilder; use hydrus_api::wrapper::builders::search_builder::SortType; +use hydrus_api::wrapper::builders::tag_builder::TagBuilder; use hydrus_api::wrapper::service::{ServiceName, ServiceType}; use hydrus_api::wrapper::url::UrlType; @@ -44,6 +45,7 @@ async fn it_searches() { OrChainBuilder::new() .add_tag("summer".into()) .add_tag("winter".into()) + .add_tag(TagBuilder::new("inside").negate().build()) .build(), ) .sort_by(SortType::ModifiedTime)