Browse Source

add a test

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@537874 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
fb392e87b9
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/tests/antunit/taskdefs/condition/resourcecontains-test.xml

+ 8
- 0
src/tests/antunit/taskdefs/condition/resourcecontains-test.xml View File

@@ -18,6 +18,14 @@
</au:assertTrue> </au:assertTrue>
</target> </target>
<target name="testContainsLowerNonCS">
<echo file="${file}" message="LOADS OF TEXT!"/>
<au:assertTrue message="Should have found the text in the resource">
<resourcecontains resource="${file}" substring="text"
casesensitive="false"/>
</au:assertTrue>
</target>
<target name="testwithemptyfile"> <target name="testwithemptyfile">
<truncate file="${file}"/> <truncate file="${file}"/>
<au:assertFalse message="Should have found nothing as file is empty"> <au:assertFalse message="Should have found nothing as file is empty">


Loading…
Cancel
Save