Added test for {//}

This commit is contained in:
Ole Tange 2011-05-31 19:54:14 +02:00
parent bd18c891fc
commit 5377e4d66d
2 changed files with 27 additions and 0 deletions

View file

@ -8,6 +8,14 @@ parallel -k echo {//} {} ::: a.jpg a/b.jpg a/b/c.jpg
parallel -k echo {//} {} ::: /a.jpg /a/b.jpg /a/b/c.jpg parallel -k echo {//} {} ::: /a.jpg /a/b.jpg /a/b/c.jpg
parallel -k echo {//} {} ::: ./a.jpg ./a/b.jpg ./a/b/c.jpg parallel -k echo {//} {} ::: ./a.jpg ./a/b.jpg ./a/b/c.jpg
echo '### Test {1//}'
parallel -k echo {1//} {} ::: a a/b a/b/c
parallel -k echo {1//} {} ::: /a /a/b /a/b/c
parallel -k echo {1//} {} ::: ./a ./a/b ./a/b/c
parallel -k echo {1//} {} ::: a.jpg a/b.jpg a/b/c.jpg
parallel -k echo {1//} {} ::: /a.jpg /a/b.jpg /a/b/c.jpg
parallel -k echo {1//} {} ::: ./a.jpg ./a/b.jpg ./a/b/c.jpg
echo '### Test --dnr' echo '### Test --dnr'
parallel --dnr II -k echo II {} ::: a a/b a/b/c parallel --dnr II -k echo II {} ::: a a/b a/b/c

View file

@ -17,6 +17,25 @@ a/b a/b/c.jpg
. ./a.jpg . ./a.jpg
./a ./a/b.jpg ./a ./a/b.jpg
./a/b ./a/b/c.jpg ./a/b ./a/b/c.jpg
### Test {1//}
. a
a a/b
a/b a/b/c
/ /a
/a /a/b
/a/b /a/b/c
. ./a
./a ./a/b
./a/b ./a/b/c
. a.jpg
a a/b.jpg
a/b a/b/c.jpg
/ /a.jpg
/a /a/b.jpg
/a/b /a/b/c.jpg
. ./a.jpg
./a ./a/b.jpg
./a/b ./a/b/c.jpg
### Test --dnr ### Test --dnr
. a . a
a a/b a a/b