ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r537886 - /ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml
Date Mon, 14 May 2007 15:41:27 GMT
Author: mbenson
Date: Mon May 14 08:41:26 2007
New Revision: 537886

URL: http://svn.apache.org/viewvc?view=rev&rev=537886
Log:
add test

Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml?view=diff&rev=537886&r1=537885&r2=537886
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/condition/resourcecontains-test.xml Mon May
14 08:41:26 2007
@@ -54,6 +54,13 @@
     </au:assertFalse>
   </target>
 
+  <target name="testWithEmptyFileAndSubstring">
+    <truncate file="${file}"/>
+    <au:assertTrue message="Empty resource should contain empty string">
+      <resourcecontains resource="${file}" substring=""/>
+    </au:assertTrue>
+  </target>
+
   <target name="testdoesntcontain">
     <au:assertFalse message="Should have found nothing as file is empty">
       <resourcecontains resource="${file}" substring="futurama"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message