aboutsummaryrefslogtreecommitdiff
path: root/paludis/user_dep_spec_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/user_dep_spec_TEST.cc')
-rw-r--r--paludis/user_dep_spec_TEST.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/paludis/user_dep_spec_TEST.cc b/paludis/user_dep_spec_TEST.cc
index 033c49eb0..dff1e3d72 100644
--- a/paludis/user_dep_spec_TEST.cc
+++ b/paludis/user_dep_spec_TEST.cc
@@ -487,6 +487,18 @@ namespace test_cases
TEST_CHECK(match_package(env, o, *pkg1, { }));
TEST_CHECK(match_package(env, o, *pkg2, { }));
TEST_CHECK(! match_package(env, o, *pkg3, { }));
+
+ PackageDepSpec p(parse_user_package_dep_spec("cat/pkg1[.::$format=fake]", &env, { }));
+ TEST_CHECK(match_package(env, p, *pkg1, { }));
+
+ PackageDepSpec q(parse_user_package_dep_spec("cat/pkg1[.::$format=e]", &env, { }));
+ TEST_CHECK(! match_package(env, q, *pkg1, { }));
+
+ PackageDepSpec r(parse_user_package_dep_spec("cat/pkg1[.::format=fake]", &env, { }));
+ TEST_CHECK(match_package(env, r, *pkg1, { }));
+
+ PackageDepSpec s(parse_user_package_dep_spec("cat/pkg1[.::format=e]", &env, { }));
+ TEST_CHECK(! match_package(env, s, *pkg1, { }));
}
} test_user_package_dep_spec_user_key_req;
}