aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-26 15:40:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-26 15:40:29 +0200
commite1d2e3b63934c1e193429f1d6c4e04abc0e85d56 (patch)
treeff542da6cc5d7d1b8202b5ce9cd3573211024b94 /tests
parentcd9a4ea692ba87aa03a80489bf03736e713722c7 (diff)
Support for scope parents, initial variable support
Diffstat (limited to 'tests')
-rw-r--r--tests/build/prefix-map/driver.cxx42
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 &&