Commit 92801b40 authored by stancakapost's avatar stancakapost
Browse files

new Tests for Chapter 6.1.1x

parent b37004ed
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  9:6.1.5, Verify if tool rejects validation in case of restricted value due xsd type declaration.
 ** @verdict  pass reject
 ***************************************************/
module Neg_060105_enumeration_003 {

    import from schema_Neg_060105_enumeration_003 language "XSD" all;

	template E1 m_msg := 1;

//#TC_Neg
}
+17 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="schema:Neg_060105_enumeration_003"
    xmlns:ns="schema:Neg_060105_enumeration_003">
      <simpleType name="t1">
        <restriction>
          <simpleType>
            <restriction base="integer">
              <minInclusive value="1"/>
              <maxInclusive value="10"/>
            </restriction>
          </simpleType>
          <minExclusive value="5"/>
        </restriction>
      </simpleType>
    <element name="e1" type="ns:t1"/>
</schema>
 No newline at end of file
+14 −0
Original line number Original line Diff line number Diff line
/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  9:6.1.11, Check that totalDigits are converted to value boundaries
 ** @verdict  pass reject
 ***************************************************/
module Neg_060111_total_digits_001 {

    import from schema_Neg_060111_total_digits_001 language "XSD" all;

    template E1 m_msg := 0;

//#TC_Neg
}
+11 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="schema:Neg_060111_total_digits_001"
    xmlns:types="schema:Neg_060111_total_digits_001">
	<simpleType name="t1">
	 <restriction base="negativeInteger">
	 <totalDigits value="3"/>
	 </restriction>
	</simpleType>
    <element name="e1" type="types:t1"/>
</schema>
 No newline at end of file
+14 −0
Original line number Original line Diff line number Diff line
/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  9:6.1.11, TODO write purpose
 ** @verdict  pass reject
 ***************************************************/
module Neg_060111_total_digits_002 {

    import from schema_Neg_060111_total_digits_002 language "XSD" all;

    template E1 m_msg := -1000;

//#TC_Neg
}
Loading