Update of
/cvsroot/boost/boost/tools/regression/xsl_reports/test/test-components/test_re_match
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16023
Added Files:
Tag: RC_1_34_0
test-driver.xsl test_re_match.xml
Log Message:
meta:re_match tests copied from xsl/test
--- NEW FILE: test-driver.xsl ---
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright MetaCommunications, Inc. 2003-2004.
Distributed under the Boost Software License, Version 1.0. (See
accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
-->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
xmlns:func="http://exslt.org/functions"
xmlns:str="http://exslt.org/strings"
xmlns:meta="http://www.meta-comm.com"
extension-element-prefixes="func"
exclude-result-prefixes="str meta exsl"
version="1.0">
<xsl:import href="../../../xsl/v2/common.xsl"/>
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match='test'>
<xsl:variable name="result" select="meta:re_match( @pattern, @text )"/>
<xsl:variable name="expected-result" select="@result = 'true'"/>
<result regex="[EMAIL PROTECTED]" text="[EMAIL PROTECTED]"
result="{$result}"/>
</xsl:template>
</xsl:stylesheet>
--- NEW FILE: test_re_match.xml ---
<!--
Copyright MetaCommunications, Inc. 2003-2005.
Distributed under the Boost Software License, Version 1.0. (See
accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
-->
<root>
<test pattern="" text="" result="true"/>
<test pattern="pattern" text="pattern" result="true"/>
<test pattern="" text="pattern" result="false"/>
<test pattern="pattern" text="" result="false"/>
<test pattern="*" text="" result="true"/>
<test pattern="*" text="pattern" result="true"/>
<test pattern="*pattern*" text="" result="false"/>
<test pattern="*pattern*" text="__pattern__" result="true"/>
<test pattern="*pattern*" text="pattern" result="true"/>
<test pattern="*pattern*" text="patter" result="false"/>
<test pattern="*pattern*" text="patte__" result="false"/>
<test pattern="*pattern*" text="attern" result="false"/>
<test pattern="*pattern*" text="__ttern" result="false"/>
<test pattern="*pattern" text="" result="false"/>
<test pattern="*pattern" text="__pattern" result="true"/>
<test pattern="*pattern" text="pattern" result="true"/>
<test pattern="*pattern" text="pattern__" result="false"/>
<test pattern="*pattern" text="patter" result="false"/>
<test pattern="*pattern" text="patte__" result="false"/>
<test pattern="*pattern" text="attern" result="false"/>
<test pattern="*pattern" text="__ttern" result="false"/>
<test pattern="pattern*" text="" result="false"/>
<test pattern="pattern*" text="pattern__" result="true"/>
<test pattern="pattern*" text="pattern" result="true"/>
<test pattern="pattern*" text="patter" result="false"/>
<test pattern="pattern*" text="__pattern" result="false"/>
<test pattern="pattern*" text="attern" result="false"/>
<test pattern="pattern*" text="patter_" result="false"/>
<test pattern="pattern*" text="patte__" result="false"/>
<test pattern="patt*ern" text="" result="false"/>
<test pattern="patt*ern" text="patt__ern" result="true"/>
<test pattern="patt*ern" text="pattern" result="true"/>
<test pattern="patter*n" text="patter__n" result="true"/>
<test pattern="p*attern" text="pttern" result="false"/>
<test pattern="p*attern" text="pattern" result="true"/>
<test pattern="patter*n" text="patter" result="false"/>
<test pattern="p*attern" text="attern" result="false"/>
<test pattern="p*attern" text="p_ttern" result="false"/>
</root>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs