You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by ce...@apache.org on 2005/04/22 21:04:36 UTC

svn commit: r164268 - in /xmlbeans/trunk/test: cases/xbean/scomp/derivation/facets/FacetRestriction.xsd src/scomp/derivation/restriction/facets/detailed/FacetRestrictionTest.java

Author: cezar
Date: Fri Apr 22 12:04:34 2005
New Revision: 164268

URL: http://svn.apache.org/viewcvs?rev=164268&view=rev
Log:
Contributed by Rajiv Balachandran. Fixing tests for Pattern Restriction on Facets

Modified:
    xmlbeans/trunk/test/cases/xbean/scomp/derivation/facets/FacetRestriction.xsd
    xmlbeans/trunk/test/src/scomp/derivation/restriction/facets/detailed/FacetRestrictionTest.java

Modified: xmlbeans/trunk/test/cases/xbean/scomp/derivation/facets/FacetRestriction.xsd
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/cases/xbean/scomp/derivation/facets/FacetRestriction.xsd?rev=164268&r1=164267&r2=164268&view=diff
==============================================================================
--- xmlbeans/trunk/test/cases/xbean/scomp/derivation/facets/FacetRestriction.xsd (original)
+++ xmlbeans/trunk/test/cases/xbean/scomp/derivation/facets/FacetRestriction.xsd Fri Apr 22 12:04:34 2005
@@ -78,7 +78,7 @@
 
     <xs:simpleType name="PatternT">
            <xs:restriction base="base:PatternT">
-               <xs:pattern value="(a[^bc]d){2}"/>
+               <xs:pattern value="(a[^ef]d){3}"/>
            </xs:restriction>
        </xs:simpleType>
 

Modified: xmlbeans/trunk/test/src/scomp/derivation/restriction/facets/detailed/FacetRestrictionTest.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/src/scomp/derivation/restriction/facets/detailed/FacetRestrictionTest.java?rev=164268&r1=164267&r2=164268&view=diff
==============================================================================
--- xmlbeans/trunk/test/src/scomp/derivation/restriction/facets/detailed/FacetRestrictionTest.java (original)
+++ xmlbeans/trunk/test/src/scomp/derivation/restriction/facets/detailed/FacetRestrictionTest.java Fri Apr 22 12:04:34 2005
@@ -257,8 +257,10 @@
     }
 
     public void testPatternElt() throws Throwable {
+
+        // base pattern is (a[^bc]d){3}, derived pattern is (a[^ef]d){3}
         PatternEltDocument doc = PatternEltDocument.Factory.newInstance();
-        doc.setPatternElt("aedafd");
+        doc.setPatternElt("axdaydazd");
         try {
             assertTrue(doc.validate(validateOptions));
         } catch (Throwable t) {
@@ -268,7 +270,7 @@
         String[] errExpected = new String[]{
             XmlErrorCodes.DATATYPE_VALID$PATTERN_VALID};
 
-        doc.setPatternElt("aedaedaed");
+        doc.setPatternElt("aedafdagd");
         assertTrue(!doc.validate(validateOptions));
         assertTrue(compareErrorCodes(errExpected));
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org