From e1d2e3b63934c1e193429f1d6c4e04abc0e85d56 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Feb 2015 15:40:29 +0200 Subject: Support for scope parents, initial variable support --- tests/build/prefix-map/driver.cxx | 42 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'tests') 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 && -- cgit v1.1