make tests pass on Windows where each pathelement gets the drive letter added to the front
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@1063177 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
40d950fe3b
commit
685acd90c6
|
|
@ -28,10 +28,14 @@ under the License.
|
|||
|
||||
<target name="testReferenceMapper">
|
||||
<property name="ref.one" refid="first.mapped"/>
|
||||
<au:assertEquals expected="${file.separator}first" actual="${ref.one}" />
|
||||
<au:assertTrue>
|
||||
<contains substring="${file.separator}first" string="${ref.one}"/>
|
||||
</au:assertTrue>
|
||||
|
||||
<property name="ref.two" refid="second.mapped"/>
|
||||
<au:assertEquals expected="${file.separator}second" actual="${ref.two}" />
|
||||
<au:assertTrue>
|
||||
<contains substring="${file.separator}second" string="${ref.two}"/>
|
||||
</au:assertTrue>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
|
@ -28,10 +28,14 @@ under the License.
|
|||
|
||||
<target name="testReferenceRegex">
|
||||
<property name="ref.one" refid="first.ref"/>
|
||||
<au:assertEquals expected="${file.separator}first" actual="${ref.one}" />
|
||||
<au:assertTrue>
|
||||
<contains substring="${file.separator}first" string="${ref.one}"/>
|
||||
</au:assertTrue>
|
||||
|
||||
<property name="ref.two" refid="second.ref"/>
|
||||
<au:assertEquals expected="${file.separator}second" actual="${ref.two}" />
|
||||
<au:assertTrue>
|
||||
<contains substring="${file.separator}second" string="${ref.two}"/>
|
||||
</au:assertTrue>
|
||||
|
||||
<condition property="uninherited.is.set" value="true">
|
||||
<isreference refid="third.missing"/>
|
||||
|
|
|
|||
|
|
@ -28,10 +28,14 @@ under the License.
|
|||
|
||||
<target name="testReferenceSet">
|
||||
<property name="ref.one" refid="first.ref"/>
|
||||
<au:assertEquals expected="${file.separator}first" actual="${ref.one}" />
|
||||
<au:assertTrue>
|
||||
<contains substring="${file.separator}first" string="${ref.one}"/>
|
||||
</au:assertTrue>
|
||||
|
||||
<property name="ref.three" refid="third.ref"/>
|
||||
<au:assertEquals expected="${file.separator}third" actual="${ref.three}" />
|
||||
<au:assertTrue>
|
||||
<contains substring="${file.separator}third" string="${ref.three}"/>
|
||||
</au:assertTrue>
|
||||
|
||||
<condition property="uninherited.is.set" value="true">
|
||||
<isreference refid="second.ref"/>
|
||||
|
|
|
|||
|
|
@ -28,8 +28,16 @@ under the License.
|
|||
|
||||
<target name="testReference">
|
||||
<property name="ref.string" refid="inherited.ref"/>
|
||||
<au:assertEquals expected="${file.separator}some${path.separator}${file.separator}path${path.separator}${file.separator}value" actual="${ref.string}" />
|
||||
|
||||
<au:assertTrue>
|
||||
<and>
|
||||
<contains substring="${file.separator}some${path.separator}"
|
||||
string="${ref.string}"/>
|
||||
<contains substring="${file.separator}path${path.separator}"
|
||||
string="${ref.string}"/>
|
||||
<contains substring="${file.separator}value"
|
||||
string="${ref.string}"/>
|
||||
</and>
|
||||
</au:assertTrue>
|
||||
<condition property="uninherited.is.set" value="true">
|
||||
<isreference refid="uninherited.ref"/>
|
||||
</condition>
|
||||
|
|
|
|||
Loading…
Reference in New Issue