21 #include <wibble/test.h>
22 #include <tagcoll/expression.h>
36 set<std::string> test;
37 test.insert(
"use::editing");
38 test.insert(
"use::viewing");
39 test.insert(
"works-with::text");
41 assert_eq(test.size(), 3u);
43 Expression e1(
"use::editing");
46 Expression e2(
"use::editing && use::viewing");
49 e1 = Expression(
"!use::editing");
52 e1 = Expression(
"use::editing || sugo");
55 e1 = Expression(
"use::editing && !sugo");
58 e1 = Expression(
"use::editing && !use::viewing");
61 e1 = Expression(
"(use::editing || sugo) && (use::viewing && works-with::text)");
64 e1 = Expression(
"!(use::editinuse::editingra && works-with::text)");
67 e1 = Expression(
"works-with::*");
70 e1 = Expression(
"*::text");
73 e1 = Expression(
"!*::antani");
76 e1 = Expression(
"*::antani");
Definition: packagerecord.test.h:22
Definition: debdbparser.h:31
Vocabulary voc
Definition: expression.test.h:32
Test _1()
Definition: expression.test.h:34
Definition: expression.test.h:31