summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-02-01 17:12:35 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-03 12:55:54 +0100
commitd6f38436a229dc4421e77b58bf42d07bdb28b808 (patch)
treeb281d073ceea4e4d670d243e88b0bf1201b45c29 /test
parentcfec457d599373e6014b1f4472f48d5f989d76a5 (diff)
Implement | as or
Diffstat (limited to 'test')
-rw-r--r--test/libapt/pattern_test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/libapt/pattern_test.cc b/test/libapt/pattern_test.cc
index 00d356d47..d8d962758 100644
--- a/test/libapt/pattern_test.cc
+++ b/test/libapt/pattern_test.cc
@@ -184,4 +184,7 @@ TEST(TreeParserTest, ParseShortPattern)
EXPECT_PATTERN_EQ("!~F ~T", "?and(?not(?false), ?true)");
EXPECT_PATTERN_EQ("!~F~T", "?and(?not(?false), ?true)");
+ EXPECT_PATTERN_EQ("!~F~T | ~T", "?or(?and(?not(?false), ?true), ?true)");
+ EXPECT_PATTERN_EQ("~ramd64|~rall", "?or(?architecture(amd64), ?architecture(all))");
+
}