Browse Source

add test

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@537886 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
a2f47371e7
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

@@ -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"/>


Loading…
Cancel
Save