summaryrefslogtreecommitdiff
path: root/tests/test_resolver_hints.cc
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2009-01-18 14:53:11 -0800
committerDaniel Burrows <dburrows@debian.org>2009-01-18 14:53:11 -0800
commit2da78335ead48f47a0953d2920f1cdc7b37c46f2 (patch)
tree198c04b83d9b959d1f3dc188d4d88a32cd621272 /tests/test_resolver_hints.cc
parent565895a42f72af659c759b0c46040218cdc07217 (diff)
downloadaptitude-2da78335ead48f47a0953d2920f1cdc7b37c46f2.tar.gz
Use the exact name matcher to fix the "hints match too much" bug.
Diffstat (limited to 'tests/test_resolver_hints.cc')
-rw-r--r--tests/test_resolver_hints.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_resolver_hints.cc b/tests/test_resolver_hints.cc
index 2c518f10..2eef91f3 100644
--- a/tests/test_resolver_hints.cc
+++ b/tests/test_resolver_hints.cc
@@ -45,31 +45,31 @@ namespace
const test resolver_tests[] =
{
- test("40 g++", hint::make_tweak_score(pattern::make_name("g++"),
+ test("40 g++", hint::make_tweak_score(pattern::make_exact_name("g++"),
hint::version_selection::make_inst(),
40)),
- test("-143 aptitude <4.3.0", hint::make_tweak_score(pattern::make_name("aptitude"),
+ test("-143 aptitude <4.3.0", hint::make_tweak_score(pattern::make_exact_name("aptitude"),
hint::version_selection::make_version(hint::version_selection::less_than, "4.3.0"),
-143)),
test("+621 ?section(games) /unstable", hint::make_tweak_score(pattern::make_section("games"),
hint::version_selection::make_archive("unstable"),
621)),
- test("reject libc6 <=0.5.0", hint::make_reject(pattern::make_name("libc6"),
+ test("reject libc6 <=0.5.0", hint::make_reject(pattern::make_exact_name("libc6"),
hint::version_selection::make_version(hint::version_selection::less_than_or_equal_to,
"0.5.0"))),
- test("approve entropy =0", hint::make_mandate(pattern::make_name("entropy"),
+ test("approve entropy =0", hint::make_mandate(pattern::make_exact_name("entropy"),
hint::version_selection::make_version(hint::version_selection::equal_to,
"0"))),
- test("approve entropy 1", hint::make_mandate(pattern::make_name("entropy"),
+ test("approve entropy 1", hint::make_mandate(pattern::make_exact_name("entropy"),
hint::version_selection::make_version(hint::version_selection::equal_to,
"1"))),
- test("reject aptitude :UNINST", hint::make_reject(pattern::make_name("aptitude"),
+ test("reject aptitude :UNINST", hint::make_reject(pattern::make_exact_name("aptitude"),
hint::version_selection::make_uninst())),
- test("+29387 xmonad >=5.4.3.2.1", hint::make_tweak_score(pattern::make_name("xmonad"),
+ test("+29387 xmonad >=5.4.3.2.1", hint::make_tweak_score(pattern::make_exact_name("xmonad"),
hint::version_selection::make_version(hint::version_selection::greater_than_or_equal_to, "5.4.3.2.1"),
29387)),
- test("approve dc >1", hint::make_mandate(pattern::make_name("dc"),
+ test("approve dc >1", hint::make_mandate(pattern::make_exact_name("dc"),
hint::version_selection::make_version(hint::version_selection::greater_than, "1"))),
test("reject ?task(desktop) <>4.0", hint::make_reject(pattern::make_task("desktop"),
hint::version_selection::make_version(hint::version_selection::not_equal_to, "4.0")))