diff options
Diffstat (limited to 'tests/build/prefix-map')
-rw-r--r-- | tests/build/prefix-map/driver.cxx | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/tests/build/prefix-map/driver.cxx b/tests/build/prefix-map/driver.cxx index 77edb6c..d365df2 100644 --- a/tests/build/prefix-map/driver.cxx +++ b/tests/build/prefix-map/driver.cxx @@ -20,12 +20,12 @@ main () const pm m ('.'); { - auto r (m.find ("")); + auto r (m.find_prefix ("")); assert (r.first == r.second); } { - auto r (m.find ("foo")); + auto r (m.find_prefix ("foo")); assert (r.first == r.second); } } @@ -34,33 +34,33 @@ main () pm m {{{"foo", 1}}, '.'}; { - auto r (m.find ("")); + auto r (m.find_prefix ("")); assert (r.first != r.second && r.first->second == 1 && ++r.first == r.second); } { - auto r (m.find ("fo")); + auto r (m.find_prefix ("fo")); assert (r.first == r.second); } { - auto r (m.find ("fox")); + auto r (m.find_prefix ("fox")); assert (r.first == r.second); } { - auto r (m.find ("fooo")); + auto r (m.find_prefix ("fooo")); assert (r.first == r.second); } { - auto r (m.find ("foo.bar")); + auto r (m.find_prefix ("foo.bar")); assert (r.first == r.second); } { - auto r (m.find ("foo")); + auto r (m.find_prefix ("foo")); assert (r.first != r.second && r.first->second == 1 && ++r.first == r.second); } @@ -70,40 +70,40 @@ main () pm m {{{"foo", 1}, {"bar", 2}}, '.'}; { - auto r (m.find ("")); + auto r (m.find_prefix ("")); assert (r.first != r.second && r.first->second == 2 && ++r.first != r.second && r.first->second == 1 && ++r.first == r.second); } { - auto r (m.find ("fo")); + auto r (m.find_prefix ("fo")); assert (r.first == r.second); } { - auto r (m.find ("fox")); + auto r (m.find_prefix ("fox")); assert (r.first == r.second); } { - auto r (m.find ("fooo")); + auto r (m.find_prefix ("fooo")); assert (r.first == r.second); } { - auto r (m.find ("foo.bar")); + auto r (m.find_prefix ("foo.bar")); assert (r.first == r.second); } { - auto r (m.find ("foo")); + auto r (m.find_prefix ("foo")); assert (r.first != r.second && r.first->second == 1 && ++r.first == r.second); } { - auto r (m.find ("bar")); + auto r (m.find_prefix ("bar")); assert (r.first != r.second && r.first->second == 2 && ++r.first == r.second); } @@ -117,34 +117,34 @@ main () '.'); { - auto r (m.find ("fo")); + auto r (m.find_prefix ("fo")); assert (r.first == r.second); } { - auto r (m.find ("fox")); + auto r (m.find_prefix ("fox")); assert (r.first == r.second); } { - auto r (m.find ("fooo")); + auto r (m.find_prefix ("fooo")); assert (r.first == r.second); } { - auto r (m.find ("foo.bar")); + auto r (m.find_prefix ("foo.bar")); assert (r.first != r.second && r.first->second == 4 && ++r.first == r.second); } { - auto r (m.find ("foo.fox")); + auto r (m.find_prefix ("foo.fox")); assert (r.first != r.second && r.first->second == 5 && ++r.first == r.second); } { - auto r (m.find ("foo")); + auto r (m.find_prefix ("foo")); assert (r.first != r.second && r.first->second == 2 && ++r.first != r.second && r.first->second == 4 && ++r.first != r.second && r.first->second == 5 && |