Commit 802d0e32 authored by urbant's avatar urbant
Browse files

New tests covering changes in TTCN-3:2017

parent 78eda58b
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 548
 ** @version  0.0.1
 ** @purpose  9:6.8, Verify conversion of XSD anySimpleType to TTCN-3 anytype
 ** @verdict  pass accept, ttcn3verdict:pass
 ** @configuration any_to_anytype
***************************************************/

module Pos_Pos_0608_anytype_and_anysimpletype_types_006 {

   import from schema_Pos_0608_anytype_and_anysimpletype_types_006 language "XSD" all;

   template MyType m_msg := { integer := 1 };

//#TC_NoXMLMatch

}
+2 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<ns:MyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="schema:Pos_0608_anytype_and_anysimpletype_types_006">1</ns:MyType>
 No newline at end of file
+6 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  targetNamespace="schema:Pos_0608_anytype_and_anysimpletype_types_006"
  xmlns:ns="schema:Pos_0608_anytype_and_anysimpletype_types_006">
	<xsd:element name="MyType" type="xsd:anySimpleType"></xsd:element>
</xsd:schema>
+17 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 548
 ** @version  0.0.1
 ** @purpose  9:6.8, Verify conversion of XSD anyType to TTCN-3 anytype
 ** @verdict  pass accept, ttcn3verdict:pass
 ** @configuration any_to_anytype
***************************************************/

module Pos_Pos_0608_anytype_and_anysimpletype_types_007 {

   import from schema_Pos_0608_anytype_and_anysimpletype_types_007 language "XSD" all;

   template MyType m_msg := { embed_values := omit, attr := omit, elem_list := { { Something := 1 } } };

//#TC_NoXMLMatch

}
+4 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<ns:MyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns="schema:Pos_0608_anytype_and_anysimpletype_types_007">
   <ns:something>1</ns:something>
</ns:MyType>
 No newline at end of file
Loading