Commit 35f5b85b authored by urbant's avatar urbant
Browse files

Updated according to the feedback from Spirent

parent c10a913a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -9,7 +9,7 @@
// Restriction e)
// Restriction e)
// The expression shall not refer to elements of the component type of the optional runs on clause.
// The expression shall not refer to elements of the component type of the optional runs on clause.


module NegSem_05040101_parameters_of_kind_value_008 { 
module NegSem_05040101_parameters_of_kind_value_008 language "TTCN-3:2016" { 
	type component GeneralComp {
	type component GeneralComp {
        var integer vc_int := 0;
        var integer vc_int := 0;
	}	
	}	
+1 −1
Original line number Original line Diff line number Diff line
@@ -9,7 +9,7 @@
// Restriction e)
// Restriction e)
// The template instance shall not refer to elements of the component type in a runs on clause.
// The template instance shall not refer to elements of the component type in a runs on clause.


module NegSem_05040102_parameters_of_kind_template_008 { 
module NegSem_05040102_parameters_of_kind_template_008 language "TTCN-3:2016" { 
	type component GeneralComp {
	type component GeneralComp {
        var template integer vc_int := ?;
        var template integer vc_int := ?;
	}	
	}	
+10 −2
Original line number Original line Diff line number Diff line
/***************************************************
/***************************************************
 ** @author   STF 470 
 ** @author   STF 470 (updated by STF 521)
 ** @version  0.0.1
 ** @version  0.0.2
 ** @purpose  1:5.5, Verify that an error is detected when a forbidded cyclic reference occurs in cyclic import
 ** @purpose  1:5.5, Verify that an error is detected when a forbidded cyclic reference occurs in cyclic import
 ** @verdict  pass reject
 ** @verdict  pass reject
 ***************************************************/
 ***************************************************/
@@ -19,6 +19,14 @@ module NegSem_0505_cyclic_definitions_002 {
	import from NegSem_0505_cyclic_definitions_002_import { const c_test1 }
	import from NegSem_0505_cyclic_definitions_002_import { const c_test1 }
	type record ARecordType { integer a, integer b };
	type record ARecordType { integer a, integer b };
	const ARecordType c_test2 := { 1 , c_test1.b}; // c_test2 refers to c_test1
	const ARecordType c_test2 := { 1 , c_test1.b}; // c_test2 refers to c_test1
	
	testcase TC_Sem_0505_cyclic_definitions_005() runs on GeneralComp system GeneralComp {
		log(c_test2);
	}
	
	control{
	    execute(TC_Sem_0505_cyclic_definitions_005());
	}
}
}


module NegSem_0505_cyclic_definitions_002_import {
module NegSem_0505_cyclic_definitions_002_import {
+3 −3
Original line number Original line Diff line number Diff line
/***************************************************
/***************************************************
 ** @author   STF 409 
 ** @author   STF 409 (updated by STF 521)
 ** @version  0.0.1
 ** @version  0.0.2
 ** @purpose  1:6.3.2, Ensure that the IUT rejects assignments from incompatible types or type ranges 
 ** @purpose  1:6.3.2, Ensure that the IUT rejects assignments from incompatible types or type ranges 
 ** @verdict  pass reject
 ** @verdict  pass reject
 ***************************************************/
 ***************************************************/


module NegSem_060302_structured_types_009 { 
module NegSem_060302_structured_types_009 language "TTCN-3:2016"{ 


	type enumerated EnumeratedType {e_black, e_white};
	type enumerated EnumeratedType {e_black, e_white};
	type enumerated EnumeratedRedefinition {e_black, e_white};
	type enumerated EnumeratedRedefinition {e_black, e_white};
+3 −3
Original line number Original line Diff line number Diff line
/*****************************************************************
/*****************************************************************
 ** @author   STF 433
 ** @author   STF 433 (updated by STF 521)
 ** @version  0.0.1
 ** @version  0.0.2
 ** @purpose  1:8.2.3.1, Ensure that name handling of imported enumerations is properly handled
 ** @purpose  1:8.2.3.1, Ensure that name handling of imported enumerations is properly handled
 ** @verdict  pass reject
 ** @verdict  pass reject
 *****************************************************************/
 *****************************************************************/




module NegSem_08020301_GeneralFormatOfImport_002 {
module NegSem_08020301_GeneralFormatOfImport_002 language "TTCN-3:2016"{
	import from NegSem_08020301_GeneralFormatOfImport_002_import all;
	import from NegSem_08020301_GeneralFormatOfImport_002_import all;


	const EnumType2 c_enum := enumX;		
	const EnumType2 c_enum := enumX;		
Loading