Commit 7cde6d3e authored by stancakapost's avatar stancakapost
Browse files

complex enumeration values tests

parent b3ae9905
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:6.1.5, disallow enumeration values removed by restriction
 ** @verdict  pass reject
 ***************************************************/
module Neg_060105_enumeration_004 {

    import from schema_Neg_060105_enumeration_004 language "XSD" all;
    
    template C2 m_msg := uNKNOWN;

//#TC_Neg
}
+2 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<C2 xmlns="schema:Pos_060105_enumeration_006">UNKNOWN</C2>
+26 −0
Original line number 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_004"
    xmlns:ns="schema:Neg_060105_enumeration_004">
    <element name="C">
	   <simpleType>
		  <restriction base="ns:CType" />
	   </simpleType>
    </element>

    <simpleType name="CType">
		<restriction base="string">
			<maxLength value="32" />
			<enumeration value="B2" />
			<enumeration value="UNKNOWN" />
		</restriction>
	</simpleType>

	<simpleType name="CTypeEnum">
		<restriction base="ns:CType" >
		  <enumeration value="B2" />
		</restriction>
	</simpleType>
	
	<element name="C2" type="ns:CTypeEnum"/>
</schema>
 No newline at end of file
+14 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:6.1.5, TODO write purpose
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/
module Pos_060105_enumeration_006 {

    import from schema_Pos_060105_enumeration_006 language "XSD" all;

    template C2 m_msg := b2;

//#TC
}
+2 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<C2 xmlns="schema:Pos_060105_enumeration_006">B2</C2>
Loading