aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-17 14:50:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-17 14:50:49 +0200
commitee64fadec760e28945808720271866a3be4935e1 (patch)
treee40b3a40b9512f283554867435c4806174d72a38
parentb936faf3601ea2f1d89dbe3472f9f2e54eda97e7 (diff)
Add tests for multi-pattern crosses seeing that we use them
-rw-r--r--build2/parser.cxx2
-rw-r--r--tests/name/cross.test6
2 files changed, 7 insertions, 1 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index 27e1933..4d628b0 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -2341,7 +2341,7 @@ namespace build2
return ns.size () - start;
}
- // Expand a name pattern. Note that the result can empty (as in "no
+ // Expand a name pattern. Note that the result can be empty (as in "no
// elements").
//
size_t parser::
diff --git a/tests/name/cross.test b/tests/name/cross.test
index 04da551..3847b6a 100644
--- a/tests/name/cross.test
+++ b/tests/name/cross.test
@@ -102,6 +102,12 @@ EOI
{
touch x.foo y.bar;
$* <'print {foo bar}{*}' >'foo{x} bar{y}'
+
+ mkdir dir && touch dir/x.foo;
+ $* <'print {*/}{*.foo}' >'dir/x.foo'
+
+ mkdir dir && touch dir/x.foo;
+ $* <'print {*/}{foo}{*}' >'dir/foo{x}'
}
# @@ TODO: nested replay.