summaryrefslogtreecommitdiff
path: root/test/libapt
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-01-28 21:46:10 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-03 12:55:54 +0100
commit8d4967d3a187dd66cf14b070a9db63f8ea21b21f (patch)
tree12b7f35d7ec901dc9feeb5cc3c060432c5a65bf9 /test/libapt
parentfd43b1694f1382a3a47f5dc546ebe3d39fcd6e7d (diff)
patterns: Implement unary !
Diffstat (limited to 'test/libapt')
-rw-r--r--test/libapt/pattern_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/libapt/pattern_test.cc b/test/libapt/pattern_test.cc
index 492a29eac..39959cd31 100644
--- a/test/libapt/pattern_test.cc
+++ b/test/libapt/pattern_test.cc
@@ -158,4 +158,5 @@ TEST(TreeParserTest, ParseShortPattern)
EXPECT_PATTERN_EQ_ATOMIC("~U", "?upgradable");
EXPECT_PATTERN_EQ("~Vverstr", "?version(verstr)");
EXPECT_PATTERN_EQ_ATOMIC("~v", "?virtual");
+ EXPECT_PATTERN_EQ("!foo", "?not(foo)");
}