Commit ee59ba90 authored by urbant's avatar urbant
Browse files

STF 521: Corrections of the existing tests (according to the rules of ETSI ES 201 873-9 V4.7.1)

parent a063d010
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @author   STF 475, updated by STF 521
 ** @version  0.0.2
 ** @purpose  9:5.2.2, Verify that leading and trailing low lines are removed
 ** @verdict  pass accept, ttcn3verdict:pass
***************************************************/
+1 −1
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" ghi.="2" xmlns:ns="schema:Pos_050202_name_conversion_rules_004--">
<ns:MyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ghi.="2" xmlns:ns="schema:Pos_050202_name_conversion_rules_004">
 <__def>1</__def>
</ns:MyType>
 No newline at end of file
+2 −2
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_004--"
  xmlns:ns="schema:Pos_050202_name_conversion_rules_004--">
  targetNamespace="schema:Pos_050202_name_conversion_rules_004"
  xmlns:ns="schema:Pos_050202_name_conversion_rules_004">
  <element name="MyType" type="ns:_Abc." />
  <complexType name="_Abc.">
    <sequence>
+15 −3
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 475
 ** @version  0.0.1
 ** @author   STF 475, updated by STF 521
 ** @version  0.0.2
 ** @purpose  9:5.2.2, Verify that name clash between module names is resolved using suffix
 ** @verdict  pass accept, ttcn3verdict:pass
***************************************************/
// The following requirements are tested:
// Rule a: If the name being generated is the name of a TTCN-3 module and the character 
// string generated by items a) to e) above is identical to an another, previously 
// generated TTCN-3 module name, then a postfix shall be appended to the character 
// string: the postfix shall consist of a "_" (LOW LINE) followed by the canonical 
// lexical representation (see W3C XML Schema Part 2 [9], clause 2.3.1) of an integer, 
// unless the name already finishes with a "_" (LOW LINE) character, in which case the 
// postfix is an integer only. This integer shall be the least positive integer such 
// that the new name is different from all previously generated TTCN 3 modules names 
// and clashing definition name.

module Pos_050202_name_conversion_rules_023 {

   import from schema_Pos_050202_name_conversion_rules_023_ language "XSD" all;
   import from schema_Pos_050202_name_conversion_rules_023_1 language "XSD" all;

   template MyType m_msg := 1;
   template schema_Pos_050202_name_conversion_rules_023_1.MyType m_msg := 1;

//#TC

+2 −2
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_023"
  xmlns:ns1="schema:Pos_050202_name_conversion_rules_023">
  targetNamespace="schema:Pos_050202_name_conversion_rules_023/"
  xmlns:ns1="schema:Pos_050202_name_conversion_rules_023/">
  <element name="MyType" type="string"/>
</schema>
Loading