Browse Source

add failing test

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

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

@@ -26,6 +26,13 @@
</au:assertTrue> </au:assertTrue>
</target> </target>
<target name="testContainsUpperNonCS">
<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