Browse Source

add test

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

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

@@ -33,6 +33,12 @@
</au:assertTrue> </au:assertTrue>
</target> </target>
<target name="testContainsEmptyString">
<au:assertTrue message="Should have found the text in the resource">
<resourcecontains resource="${file}" substring="" />
</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