Skip to content

Commit

Permalink
fixed test to match slightly modified 'from' behavior when matching m…
Browse files Browse the repository at this point in the history
…ultiple files of same type
  • Loading branch information
ssadedin committed Jan 21, 2013
1 parent 0f7c9ef commit 156c70b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/from_2_matches/test.groovy
Expand Up @@ -2,25 +2,25 @@
* Test that a from that matches 2 inputs sets them as input1 and input2
*/
hello = {
from("txt") {
filter("hello","hello2") {
msg "$input1 => $output1"
msg "$input2 => $output2"
exec "cp $input1 $output1"
exec "cp $input2 $output2"
from("txt","txt") {
filter("hello","hello2") {
msg "$input1 => $output1"
msg "$input2 => $output2"
exec "cp $input1 $output1"
exec "cp $input2 $output2"
}
}
}
}

world = {
from("txt") {
from("txt","txt") {
filter("world") {
msg "$input => $output"
exec "cp $input $output"
}
}
}
}

Bpipe.run {
hello + world
run {
hello + world
}

0 comments on commit 156c70b

Please sign in to comment.