Commit 61667502 authored by urbant's avatar urbant
Browse files

Test cases for section 5.2.2 (rules b - k)

parent 3be9e5cd
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:5.2.2, Verify conversion of symbols into U+005f (low line)
 ** @verdict  pass accept, ttcn3verdict:pass
***************************************************/
// The following requirements are tested:
// Rule b:
// the characters " " (SPACE), "." (FULL STOP), "-" (HYPEN-MINUS), ":" (COLON) and "/" 
// (SOLIDUS) shall all be replaced by a "_" (LOW LINE);
module Pos_050202_name_conversion_rules_001 {

   import from schema_Pos_050202_name_conversion_rules_001_test language "XSD" all;

   template A_b_c m_src := 
	{
		d_e_f := 1,
		g_h_i := 2
	};
   template MyType m_msg := m_src;

//#TC

}
+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" g.h-i="2" xmlns:ns="schema:Pos 050202.name-conversion_rules_001/test">
 <d.e-f>1</d.e-f>
</ns:MyType>
 No newline at end of file
+12 −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:Pos 050202.name-conversion_rules_001/test"
  xmlns:ns="schema:Pos 050202.name-conversion_rules_001/test">
  <element name="MyType" type="ns:A.b-c" />
  <complexType name="A.b-c">
    <sequence>
		<element name="d.e-f" type="integer"/>
    </sequence>
    <attribute name="g.h-i" type="integer" />
  </complexType>
</schema>
+24 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @purpose  9:5.2.2, Verify that non-ASCI letters are not present in transforming identifiers
 ** @verdict  pass accept, ttcn3verdict:pass
***************************************************/
// The following requirements are tested:
// Rule c:
// any character except "A" to "Z" (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z), 
// "a" to "z" (LATIN SMALL LETTER A to LATIN SMALL LETTER Z), "0" to "9" (DIGIT ZERO 
// to DIGIT NINE), and "_" (LOW LINE) shall be removed;
module Pos_050202_name_conversion_rules_002 {
   import from schema_Pos_050202_name_conversion_rules_002 language "XSD" all;

   template Xx m_src := 
	{
		aa := 1,
		bb := 2
	};
   template MyType m_msg := m_src;

//#TC

}
+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" böä蓉蕻b="2" xmlns:ns="schema:Pos_050202_name_conversion_öä蓉蕻rules_002">
 <aöä蓉蕻a>1</aöä蓉蕻a>
</ns:MyType>
 No newline at end of file
Loading