Files
galaxy/test/functional/tools/parameters/gx_float_optional.xml
T
2024-07-15 09:46:13 -04:00

30 lines
861 B
XML

<tool id="gx_float_optional" name="gx_float_optional" version="1.0.0">
<command><![CDATA[
echo '$parameter' >> '$output'
]]></command>
<inputs>
<param name="parameter" type="float" optional="true" />
</inputs>
<outputs>
<data name="output" format="txt" />
</outputs>
<tests>
<test>
<param name="parameter" value_json="12456" />
<output name="output">
<assert_contents>
<has_line line="12456.0" />
</assert_contents>
</output>
</test>
<test>
<param name="parameter" value="12456" />
<output name="output">
<assert_contents>
<has_line line="12456.0" />
</assert_contents>
</output>
</test>
</tests>
</tool>