summaryrefslogtreecommitdiff
path: root/test/libapt/pattern_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/libapt/pattern_test.cc')
-rw-r--r--test/libapt/pattern_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/libapt/pattern_test.cc b/test/libapt/pattern_test.cc
index bfcaf2093..55bc4bdcf 100644
--- a/test/libapt/pattern_test.cc
+++ b/test/libapt/pattern_test.cc
@@ -219,4 +219,6 @@ TEST(TreeParserTest, ParseShortPattern)
EXPECT_PATTERN_EQ("?A|?B?C", "?or(?A, ?and(?B, ?C))");
EXPECT_PATTERN_EQ("?A|(?B?C)", "?or(?A, ?and(?B, ?C))");
EXPECT_PATTERN_EQ("(?B?C)|?A", "?or(?and(?B, ?C), ?A)");
+ EXPECT_PATTERN_EQ("~napt~nfoo", "?and(?name(apt),?name(foo))");
+ EXPECT_PATTERN_EQ("~napt!~nfoo", "?and(?name(apt),?not(?name(foo)))");
}