aboutsummaryrefslogtreecommitdiff
path: root/paludis/elike_dep_parser_TEST.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 13:50:39 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-19 13:50:39 +0000
commitc29150b36547140e3e7121fec994f781b9d6e46f (patch)
tree93f87df86c414db6ba2984f59864e0f632c28999 /paludis/elike_dep_parser_TEST.cc
parenta9be46e2316e6c06452b74777aca069433fb3d2a (diff)
downloadpaludis-c29150b36547140e3e7121fec994f781b9d6e46f.tar.gz
paludis-c29150b36547140e3e7121fec994f781b9d6e46f.tar.xz
Add options to parse_elike_dependencies
Diffstat (limited to 'paludis/elike_dep_parser_TEST.cc')
-rw-r--r--paludis/elike_dep_parser_TEST.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/paludis/elike_dep_parser_TEST.cc b/paludis/elike_dep_parser_TEST.cc
index 36bd0056b..e1158adc4 100644
--- a/paludis/elike_dep_parser_TEST.cc
+++ b/paludis/elike_dep_parser_TEST.cc
@@ -21,6 +21,7 @@
#include <paludis/util/map.hh>
#include <paludis/util/wrapped_forward_iterator.hh>
#include <paludis/util/make_named_values.hh>
+#include <paludis/util/options.hh>
#include <test/test_framework.hh>
#include <test/test_runner.hh>
@@ -79,7 +80,7 @@ namespace test_cases
n::on_use() = std::bind(&handler, std::ref(out), "use<", _1, ", ", "", ""),
n::on_use_under_any() = &do_nothing
));
- parse_elike_dependencies(in, callbacks);
+ parse_elike_dependencies(in, callbacks, { });
TEST_CHECK_EQUAL(out, "any<s<a>s<b>all<s<c>s<d>s<e>>>EMPTY");
}
} elike_dep_parser_basic_test;
@@ -108,7 +109,7 @@ namespace test_cases
n::on_use() = std::bind(&handler, std::ref(out), "use<", _1, ", ", "", ""),
n::on_use_under_any() = &do_nothing
));
- parse_elike_dependencies(in, callbacks);
+ parse_elike_dependencies(in, callbacks, { });
TEST_CHECK_EQUAL(out, "all<all<>>EMPTY");
}
} elike_dep_parser_test_empty_blocks;
@@ -137,7 +138,7 @@ namespace test_cases
n::on_use() = std::bind(&handler, std::ref(out), "use<", _1, ", ", "", ""),
n::on_use_under_any() = &do_nothing
));
- parse_elike_dependencies(in, callbacks);
+ parse_elike_dependencies(in, callbacks, { });
TEST_CHECK_EQUAL(out, "s<a>[first:foo;second:bar baz;]EMPTY");
}
} elike_dep_parser_annotations_test;