dmarston 01/10/03 14:53:30
Added: test/tests/conf/boolean boolean80.xsl boolean60.xsl
boolean61.xml boolean61.xsl boolean62.xml
boolean62.xsl boolean63.xml boolean63.xsl
boolean64.xml boolean64.xsl boolean65.xml
boolean65.xsl boolean66.xml boolean66.xsl
boolean67.xml boolean67.xsl boolean68.xml
boolean68.xsl boolean69.xml boolean69.xsl
boolean70.xml boolean70.xsl boolean71.xml
boolean71.xsl boolean72.xml boolean72.xsl
boolean73.xml boolean73.xsl boolean74.xml
boolean74.xsl boolean75.xml boolean75.xsl
boolean76.xml boolean76.xsl boolean77.xml
boolean77.xsl boolean78.xml boolean78.xsl
boolean79.xml boolean79.xsl boolean80.xml
boolean60.xml
Log:
Better coverage, especially of not-equal in XPath.
Revision Changes Path
1.1 xml-xalan/test/tests/conf/boolean/boolean80.xsl
Index: boolean80.xsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean80 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of "<" operator comparing real to integer, false result
-->
<xsl:template match="doc">
<out>
<xsl:value-of select="2 < 2.0"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean60.xsl
Index: boolean60.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean60 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of the '!=' operator returning false on two numbers. -->
<xsl:template match="/">
<out>
<xsl:value-of select="1!=1"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean61.xml
Index: boolean61.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean61.xsl
Index: boolean61.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean61 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of the '!=' operator returning true on two numbers. -->
<xsl:template match="/">
<out>
<xsl:value-of select="1!=2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean62.xml
Index: boolean62.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean62.xsl
Index: boolean62.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean62 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of '!=' operator on two numbers, one having decimal
point and zeroes after -->
<xsl:template match="/">
<out>
<xsl:value-of select="1 != 1.00"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean63.xml
Index: boolean63.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean63.xsl
Index: boolean63.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean63 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of '!=' operator on two booleans, false first. -->
<xsl:template match="/">
<out>
<xsl:value-of select="false()!=true()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean64.xml
Index: boolean64.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean64.xsl
Index: boolean64.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean64 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of '!=' operator on two booleans, true first. -->
<xsl:template match="/">
<out>
<xsl:value-of select="true()!=false()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean65.xml
Index: boolean65.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean65.xsl
Index: boolean65.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean65 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of '!=' operator on two booleans that are equal, so
false should result. -->
<xsl:template match="/">
<out>
<xsl:value-of select="false()!=false()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean66.xml
Index: boolean66.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean66.xsl
Index: boolean66.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean66 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of '!=' operator on two strings that are equal, so false
should result. -->
<xsl:template match="/">
<out>
<xsl:value-of select="'ace' != 'ace'"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean67.xml
Index: boolean67.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean67.xsl
Index: boolean67.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean67 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of '!=' operator on two strings that are unequal, so
true should result. -->
<xsl:template match="/">
<out>
<xsl:value-of select="'ace' != 'abc'"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean68.xml
Index: boolean68.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean68.xsl
Index: boolean68.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean68 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of '!=' operator on two strings that are unequal, but
only in leading spaces. -->
<xsl:template match="/">
<out>
<xsl:value-of select="'H' != ' H'"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean69.xml
Index: boolean69.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean69.xsl
Index: boolean69.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean69 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of '!=' operator on two strings that are unequal, but
only in trailing spaces. -->
<xsl:template match="/">
<out>
<xsl:value-of select="'H' != 'H '"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean70.xml
Index: boolean70.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<j l='12' w='33'>first</j>
<j l='17' w='45'>second</j>
<j l='16' w='78'>third</j>
<j l='12' w='33'>fourth</j>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean70.xsl
Index: boolean70.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean70 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test = on two node-sets, where both are the same. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="[EMAIL PROTECTED]'12'] = [EMAIL PROTECTED]'33']"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean71.xml
Index: boolean71.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<j l='12' w='33'>first</j>
<j l='17' w='45'>second</j>
<j l='16' w='78'>third</j>
<j l='12' w='33'>fourth</j>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean71.xsl
Index: boolean71.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean71 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test = on two disjoint node-sets. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="[EMAIL PROTECTED]'12'] = [EMAIL PROTECTED]'17']"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean72.xml
Index: boolean72.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<j l='12' w='45'>first</j>
<j l='17' w='45'>second</j>
<j l='16' w='78'>third</j>
<j l='12' w='33'>fourth</j>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean72.xsl
Index: boolean72.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean72 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test = on two node-sets that have one node in common. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="[EMAIL PROTECTED]'12'] = [EMAIL PROTECTED]'45']"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean73.xml
Index: boolean73.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<j l='12' w='33'>first</j>
<j l='17' w='45'>second</j>
<j l='16' w='78'>third</j>
<j l='12' w='33'>fourth</j>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean73.xsl
Index: boolean73.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean73 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test != on two node-sets, where both are the same. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="[EMAIL PROTECTED]'12'] != [EMAIL PROTECTED]'33']"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean74.xml
Index: boolean74.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<j l='12' w='33'>first</j>
<j l='17' w='45'>second</j>
<j l='16' w='78'>third</j>
<j l='12' w='33'>fourth</j>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean74.xsl
Index: boolean74.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean74 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test != on two disjoint node-sets. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="[EMAIL PROTECTED]'12'] != [EMAIL PROTECTED]'17']"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean75.xml
Index: boolean75.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<j l='12' w='45'>first</j>
<j l='17' w='45'>second</j>
<j l='16' w='78'>third</j>
<j l='12' w='33'>fourth</j>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean75.xsl
Index: boolean75.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean75 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test != on two node-sets that have one node in common. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="[EMAIL PROTECTED]'12'] != [EMAIL PROTECTED]'45']"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean76.xml
Index: boolean76.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<j l='12' w='45'>first</j>
<j l='17' w='45'>second</j>
<j l='16' w='78'>third</j>
<j l='12' w='33'>fourth</j>
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean76.xsl
Index: boolean76.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean76 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test != on two node-sets that have their only node in common.
-->
<xsl:template match="doc">
<out>
<xsl:value-of select="[EMAIL PROTECTED]'16'] != [EMAIL PROTECTED]'78']"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean77.xml
Index: boolean77.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
test
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean77.xsl
Index: boolean77.xsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean77 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of "<" operator comparing two real numbers, true result
-->
<xsl:template match="doc">
<out>
<xsl:value-of select="1.9999999 < 2.0"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean78.xml
Index: boolean78.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
test
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean78.xsl
Index: boolean78.xsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean78 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of "<" operator comparing two real numbers, false result
-->
<xsl:template match="doc">
<out>
<xsl:value-of select="2.0000001 < 2.0"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean79.xml
Index: boolean79.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
test
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean79.xsl
Index: boolean79.xsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: boolean79 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of "<" operator comparing real to integer, true result
-->
<xsl:template match="doc">
<out>
<xsl:value-of select="1.9999999 < 2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/boolean/boolean80.xml
Index: boolean80.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
test
</doc>
1.1 xml-xalan/test/tests/conf/boolean/boolean60.xml
Index: boolean60.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]