Skip to content

Commit

Permalink
Add a test for not providing an optional input
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jun 12, 2018
1 parent 6f213b3 commit 550eb88
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/functional/tools/multi_data_optional.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ touch '$out1';
cat '$input' >> '$out1';
#end if
#end for
#else
echo "No input selected" >> '$out1'
#end if
</command>
<inputs>
Expand All @@ -25,5 +27,12 @@ touch '$out1';
</assert_contents>
</output>
</test>
<test>
<output name="out1">
<assert_contents>
<has_line line="No input selected" />
</assert_contents>
</output>
</test>
</tests>
</tool>

0 comments on commit 550eb88

Please sign in to comment.