mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
to_model() checked "bool" but production expression tools (pick_value, param_value_from_file) declare type="boolean". Fix to_model() to match canonical "boolean" and fix lone test tool using non-canonical "bool". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
910 B
XML
27 lines
910 B
XML
<tool name="expression_null_handling_boolean" id="expression_null_handling_boolean"
|
|
version="0.1.0" tool_type="expression">
|
|
<expression type="ecma5.1">
|
|
{return {'bool_out': $job.bool_input};}
|
|
</expression>
|
|
<inputs>
|
|
<param type="boolean" label="Booelan input." name="bool_input" optional="true" />
|
|
</inputs>
|
|
<outputs>
|
|
<output type="boolean" name="bool_out" from="bool_out" />
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<param name="bool_input" value_json="true" />
|
|
<output name="bool_out" value_json="true" />
|
|
</test>
|
|
<test>
|
|
<param name="bool_input" value_json="false" />
|
|
<output name="bool_out" value_json="false" />
|
|
</test>
|
|
<test>
|
|
<param name="bool_input" value_json="null" />
|
|
<output name="bool_out" value_json="null" />
|
|
</test>
|
|
</tests>
|
|
</tool>
|