21 #include <wibble/test.h>
28 using namespace tagcoll;
30 using namespace ept::debtags;
38 test.insert(voc.tagByName(
"use::editing"));
39 test.insert(voc.tagByName(
"use::viewing"));
40 test.insert(voc.tagByName(
"works-with::text"));
42 assert_eq(test.size(), 3u);
44 Expression e1(
"use::editing");
47 Expression e2(
"use::editing && use::viewing");
50 e1 = Expression(
"!use::editing");
53 e1 = Expression(
"use::editing || sugo");
56 e1 = Expression(
"use::editing && !sugo");
59 e1 = Expression(
"use::editing && !use::viewing");
62 e1 = Expression(
"(use::editing || sugo) && (use::viewing && works-with::text)");
65 e1 = Expression(
"!(use::editinuse::editingra && works-with::text)");
68 e1 = Expression(
"works-with::*");
71 e1 = Expression(
"*::text");
74 e1 = Expression(
"!*::antani");
77 e1 = Expression(
"*::antani");
Match tag expressions against sets of Debtags Tags.
Vocabulary voc
Definition: expression.test.h:33
Test _1()
Definition: expression.test.h:35
Definition: expression.test.h:32