-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release_24.2' into dev
- Loading branch information
Showing
8 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<tool id="float_default" name="Test float default" version="0.1.0"> | ||
<command><![CDATA[ | ||
echo ${float($input1) + float($input2) + float($input3)} > '$out_file1' | ||
]]></command> | ||
<inputs> | ||
<param name="input1" type="float" value="0.0" label="Float with default 0.0" /> | ||
<param name="input2" type="float" value="" label="Float with default empty string" /> | ||
<!-- Not needed any more to have `value=""` when there is no good default --> | ||
<param name="input3" type="float" label="Float with no default value" /> | ||
</inputs> | ||
<outputs> | ||
<data name="out_file1" format="txt"/> | ||
</outputs> | ||
<tests> | ||
<test> | ||
<param name="input1" value="1.0" /> | ||
<param name="input2" value="2.0" /> | ||
<param name="input3" value="3.0" /> | ||
<output name="out_file1"> | ||
<assert_contents> | ||
<has_line line="6.0" /> | ||
</assert_contents> | ||
</output> | ||
</test> | ||
<!-- Test that it fails if a non-optional float param is not set --> | ||
<test expect_failure="true"> | ||
<param name="input1" value="1.0" /> | ||
<param name="input2" value="2.0" /> | ||
</test> | ||
</tests> | ||
<help> | ||
</help> | ||
</tool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters