diff find_and_replace.xml @ 14:fb4ff3c42cd3 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 09b22cceacb34dd4c6c1b42890f93232df128208"
author bgruening
date Sat, 21 Mar 2020 13:49:11 -0400
parents 0a8c6b61f0f4
children d698c222f354
line wrap: on
line diff
--- a/find_and_replace.xml	Wed Apr 03 13:56:01 2019 -0400
+++ b/find_and_replace.xml	Sat Mar 21 13:49:11 2020 -0400
@@ -1,4 +1,4 @@
-<tool id="tp_find_and_replace" name="Replace" version="@BASE_VERSION@.2">
+<tool id="tp_find_and_replace" name="Replace" version="@BASE_VERSION@.3">
     <description>parts of text</description>
     <macros>
         <import>macros.xml</import>
@@ -80,6 +80,23 @@
             <param name="wholewords" value="True" />
             <output name="outfile" file="find_and_replace_results1.txt" />
         </test>
+	<!-- test that columns are split by tab not space. input has no tab loads of spaces 
+	     .. therefore the ftype needs to be set. 
+             result should be the same as in test 1 which works on whole line -->
+        <test>
+            <param name="infile" value="find_and_replace1.txt" ftype="tabular" />
+            <param name="find_pattern" value="day" />
+            <param name="replace_pattern" value="great day" />
+            <param name="is_regex" value="False" />
+            <param name="global" value="true" />
+            <param name="caseinsensitive" value="False" />
+            <param name="wholewords" value="True" />
+            <conditional name="searchwhere">
+                <param name="searchwhere_select" value="column"/>
+                <param name="column" value="1" />
+            </conditional>
+            <output name="outfile" file="find_and_replace_results1.txt" />
+        </test>
         <test>
             <param name="infile" value="find_and_replace2.txt" />
             <param name="find_pattern" value="^chr" />