Loading B_matching_incoming_values/B01_template_matching/B0102_matching_mechanisms/B010205_value_range/NegSem_B010205_value_range_001.ttcn 0 → 100644 +68 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:B.1, Ensure that the IUT correctly handles template matching of value range definitions ** @verdict pass reject ***************************************************/ module NegSem_B010205_value_range_001 { type enumerated EnumeratedType {e_black, e_white, e_green}; type record RecordType { integer a optional, integer b optional, boolean c } type union UnionType { integer a, EnumeratedType b, boolean c } type record MessageType { integer field1, EnumeratedType field2, RecordType field3, UnionType field4 } type port loopbackPort message { inout MessageType } type component GeneralComp { port loopbackPort messagePort } testcase TC_NegSem_B010205_value_range_001() runs on GeneralComp { var MessageType v_testMessage; template MessageType mw_matchingTemplate:= { field1 := (0..2), field2 := (e_black..e_white), //attempt to use range on enumerated type field3 := {a:=1,b:=(0..2),c:=true}, field4 := {a:=(0..2)} } v_testMessage:= { field1 := 2, field2 := e_black, field3 := {a:=1,b:=2,c:=true}, field4 := {a:=1} } messagePort.send(v_testMessage); } control{ execute(TC_NegSem_B010205_value_range_001()); } } No newline at end of file B_matching_incoming_values/B01_template_matching/B0102_matching_mechanisms/B010205_value_range/NegSem_B010205_value_range_002.ttcn 0 → 100644 +68 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:B.1, Ensure that the IUT correctly handles template matching of value range definitions ** @verdict pass reject ***************************************************/ module NegSem_B010205_value_range_002 { type enumerated EnumeratedType {e_black, e_white, e_green}; type record RecordType { integer a optional, integer b optional, boolean c } type union UnionType { integer a, EnumeratedType b, boolean c } type record MessageType { integer field1, charstring field2, RecordType field3, UnionType field4 } type port loopbackPort message { inout MessageType } type component GeneralComp { port loopbackPort messagePort } testcase TC_NegSem_B010205_value_range_002() runs on GeneralComp { var MessageType v_testMessage; template MessageType mw_matchingTemplate:= { field1 := (2..0), //boundaries in wrong order field2 := (aaa..fff), field3 := {a:=1,b:=(0..2),c:=true}, field4 := {a:=(0..2)} } v_testMessage:= { field1 := 2, field2 := "abc", field3 := {a:=1,b:=2,c:=true}, field4 := {a:=1} } messagePort.send(v_testMessage); } control{ execute(TC_NegSem_B010205_value_range_002()); } } No newline at end of file B_matching_incoming_values/B01_template_matching/B0102_matching_mechanisms/B010205_value_range/NegSem_B010205_value_range_003.ttcn 0 → 100644 +68 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:B.1, Ensure that the IUT correctly handles template matching of value range definitions ** @verdict pass reject ***************************************************/ module NegSem_B010205_value_range_003 { type enumerated EnumeratedType {e_black, e_white, e_green}; type record RecordType { integer a optional, integer b optional, boolean c } type union UnionType { integer a, EnumeratedType b, boolean c } type record MessageType { integer field1, charstring field2, RecordType field3, UnionType field4 } type port loopbackPort message { inout MessageType } type component GeneralComp { port loopbackPort messagePort } testcase TC_NegSem_B010205_value_range_003() runs on GeneralComp { var MessageType v_testMessage; template MessageType mw_matchingTemplate:= { field1 := (0..2), field2 := (fff..aaa), //boundaries in wrong order field3 := {a:=1,b:=(0..2),c:=true}, field4 := {a:=(0..2)} } v_testMessage:= { field1 := 2, field2 := "abc", field3 := {a:=1,b:=2,c:=true}, field4 := {a:=1} } messagePort.send(v_testMessage); } control{ execute(TC_NegSem_B010205_value_range_003()); } } No newline at end of file B_matching_incoming_values/B01_template_matching/B0102_matching_mechanisms/B010205_value_range/Sem_B010205_value_range_001.ttcn 0 → 100644 +76 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:B.1, Ensure that the IUT correctly handles template matching of value range definitions ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ module Sem_B010205_value_range_001 { type enumerated EnumeratedType {e_black, e_white, e_green}; type record RecordType { integer a optional, integer b optional, boolean c } type union UnionType { integer a, EnumeratedType b, boolean c } type record MessageType { integer field1, charstring field2, RecordType field3, UnionType field4 } type port loopbackPort message { inout MessageType } type component GeneralComp { port loopbackPort messagePort } testcase TC_Sem_B010205_value_range_001() runs on GeneralComp { var MessageType v_testMessage; template MessageType mw_matchingTemplate:= { field1 := (0..2), field2 := (aaa..fff), field3 := {a:=1,b:=(0..2),c:=true}, field4 := {a:=(0..2)} } v_testMessage:= { field1 := 2, field2 := "abc", field3 := {a:=1,b:=2,c:=true}, field4 := {a:=1} } messagePort.send(v_testMessage); alt { [] messagePort.receive(mw_matchingTemplate) { setverdict(pass); } [] messagePort.receive { setverdict(fail); } } } control{ execute(TC_Sem_B010205_value_range_001()); } } No newline at end of file B_matching_incoming_values/B01_template_matching/B0102_matching_mechanisms/B010205_value_range/Sem_B010205_value_range_002.ttcn 0 → 100644 +76 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:B.1, Ensure that the IUT correctly handles template matching of value range definitions ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ module Sem_B010205_value_range_002 { type enumerated EnumeratedType {e_black, e_white, e_green}; type record RecordType { integer a optional, integer b optional, boolean c } type union UnionType { integer a, EnumeratedType b, boolean c } type record MessageType { integer field1, charstring field2, RecordType field3, UnionType field4 } type port loopbackPort message { inout MessageType } type component GeneralComp { port loopbackPort messagePort } testcase TC_Sem_B010205_value_range_002() runs on GeneralComp { var MessageType v_testMessage; template MessageType mw_matchingTemplate:= { field1 := (0..1), //value is out of range field2 := (aaa..fff), field3 := {a:=1,b:=(0..2),c:=true}, field4 := {a:=(0..2)} } v_testMessage:= { field1 := 2, field2 := "abc", field3 := {a:=1,b:=2,c:=true}, field4 := {a:=1} } messagePort.send(v_testMessage); alt { [] messagePort.receive(mw_matchingTemplate) { setverdict(fail); } [] messagePort.receive { setverdict(pass); } } } control{ execute(TC_Sem_B010205_value_range_002()); } } No newline at end of file Loading
B_matching_incoming_values/B01_template_matching/B0102_matching_mechanisms/B010205_value_range/NegSem_B010205_value_range_001.ttcn 0 → 100644 +68 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:B.1, Ensure that the IUT correctly handles template matching of value range definitions ** @verdict pass reject ***************************************************/ module NegSem_B010205_value_range_001 { type enumerated EnumeratedType {e_black, e_white, e_green}; type record RecordType { integer a optional, integer b optional, boolean c } type union UnionType { integer a, EnumeratedType b, boolean c } type record MessageType { integer field1, EnumeratedType field2, RecordType field3, UnionType field4 } type port loopbackPort message { inout MessageType } type component GeneralComp { port loopbackPort messagePort } testcase TC_NegSem_B010205_value_range_001() runs on GeneralComp { var MessageType v_testMessage; template MessageType mw_matchingTemplate:= { field1 := (0..2), field2 := (e_black..e_white), //attempt to use range on enumerated type field3 := {a:=1,b:=(0..2),c:=true}, field4 := {a:=(0..2)} } v_testMessage:= { field1 := 2, field2 := e_black, field3 := {a:=1,b:=2,c:=true}, field4 := {a:=1} } messagePort.send(v_testMessage); } control{ execute(TC_NegSem_B010205_value_range_001()); } } No newline at end of file
B_matching_incoming_values/B01_template_matching/B0102_matching_mechanisms/B010205_value_range/NegSem_B010205_value_range_002.ttcn 0 → 100644 +68 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:B.1, Ensure that the IUT correctly handles template matching of value range definitions ** @verdict pass reject ***************************************************/ module NegSem_B010205_value_range_002 { type enumerated EnumeratedType {e_black, e_white, e_green}; type record RecordType { integer a optional, integer b optional, boolean c } type union UnionType { integer a, EnumeratedType b, boolean c } type record MessageType { integer field1, charstring field2, RecordType field3, UnionType field4 } type port loopbackPort message { inout MessageType } type component GeneralComp { port loopbackPort messagePort } testcase TC_NegSem_B010205_value_range_002() runs on GeneralComp { var MessageType v_testMessage; template MessageType mw_matchingTemplate:= { field1 := (2..0), //boundaries in wrong order field2 := (aaa..fff), field3 := {a:=1,b:=(0..2),c:=true}, field4 := {a:=(0..2)} } v_testMessage:= { field1 := 2, field2 := "abc", field3 := {a:=1,b:=2,c:=true}, field4 := {a:=1} } messagePort.send(v_testMessage); } control{ execute(TC_NegSem_B010205_value_range_002()); } } No newline at end of file
B_matching_incoming_values/B01_template_matching/B0102_matching_mechanisms/B010205_value_range/NegSem_B010205_value_range_003.ttcn 0 → 100644 +68 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:B.1, Ensure that the IUT correctly handles template matching of value range definitions ** @verdict pass reject ***************************************************/ module NegSem_B010205_value_range_003 { type enumerated EnumeratedType {e_black, e_white, e_green}; type record RecordType { integer a optional, integer b optional, boolean c } type union UnionType { integer a, EnumeratedType b, boolean c } type record MessageType { integer field1, charstring field2, RecordType field3, UnionType field4 } type port loopbackPort message { inout MessageType } type component GeneralComp { port loopbackPort messagePort } testcase TC_NegSem_B010205_value_range_003() runs on GeneralComp { var MessageType v_testMessage; template MessageType mw_matchingTemplate:= { field1 := (0..2), field2 := (fff..aaa), //boundaries in wrong order field3 := {a:=1,b:=(0..2),c:=true}, field4 := {a:=(0..2)} } v_testMessage:= { field1 := 2, field2 := "abc", field3 := {a:=1,b:=2,c:=true}, field4 := {a:=1} } messagePort.send(v_testMessage); } control{ execute(TC_NegSem_B010205_value_range_003()); } } No newline at end of file
B_matching_incoming_values/B01_template_matching/B0102_matching_mechanisms/B010205_value_range/Sem_B010205_value_range_001.ttcn 0 → 100644 +76 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:B.1, Ensure that the IUT correctly handles template matching of value range definitions ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ module Sem_B010205_value_range_001 { type enumerated EnumeratedType {e_black, e_white, e_green}; type record RecordType { integer a optional, integer b optional, boolean c } type union UnionType { integer a, EnumeratedType b, boolean c } type record MessageType { integer field1, charstring field2, RecordType field3, UnionType field4 } type port loopbackPort message { inout MessageType } type component GeneralComp { port loopbackPort messagePort } testcase TC_Sem_B010205_value_range_001() runs on GeneralComp { var MessageType v_testMessage; template MessageType mw_matchingTemplate:= { field1 := (0..2), field2 := (aaa..fff), field3 := {a:=1,b:=(0..2),c:=true}, field4 := {a:=(0..2)} } v_testMessage:= { field1 := 2, field2 := "abc", field3 := {a:=1,b:=2,c:=true}, field4 := {a:=1} } messagePort.send(v_testMessage); alt { [] messagePort.receive(mw_matchingTemplate) { setverdict(pass); } [] messagePort.receive { setverdict(fail); } } } control{ execute(TC_Sem_B010205_value_range_001()); } } No newline at end of file
B_matching_incoming_values/B01_template_matching/B0102_matching_mechanisms/B010205_value_range/Sem_B010205_value_range_002.ttcn 0 → 100644 +76 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:B.1, Ensure that the IUT correctly handles template matching of value range definitions ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ module Sem_B010205_value_range_002 { type enumerated EnumeratedType {e_black, e_white, e_green}; type record RecordType { integer a optional, integer b optional, boolean c } type union UnionType { integer a, EnumeratedType b, boolean c } type record MessageType { integer field1, charstring field2, RecordType field3, UnionType field4 } type port loopbackPort message { inout MessageType } type component GeneralComp { port loopbackPort messagePort } testcase TC_Sem_B010205_value_range_002() runs on GeneralComp { var MessageType v_testMessage; template MessageType mw_matchingTemplate:= { field1 := (0..1), //value is out of range field2 := (aaa..fff), field3 := {a:=1,b:=(0..2),c:=true}, field4 := {a:=(0..2)} } v_testMessage:= { field1 := 2, field2 := "abc", field3 := {a:=1,b:=2,c:=true}, field4 := {a:=1} } messagePort.send(v_testMessage); alt { [] messagePort.receive(mw_matchingTemplate) { setverdict(fail); } [] messagePort.receive { setverdict(pass); } } } control{ execute(TC_Sem_B010205_value_range_002()); } } No newline at end of file