Loading 15_templates/1509_match_operation/NegSem_1509_MatchOperation_001.ttcn +1 −1 Original line number Diff line number Diff line /***************************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:15.9, Ensure that the match operation refuses two templates as parameters. ** @purpose 1:15.9, Ensure that the match operation refuses two templates as actual parameters. ** @verdict pass reject *****************************************************************/ Loading 15_templates/1509_match_operation/NegSem_1509_MatchOperation_002.ttcn 0 → 100644 +27 −0 Original line number Diff line number Diff line /***************************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:15.9, Ensure that the match operation refuses two values as actual parameters. ** @verdict pass reject *****************************************************************/ module NegSem_1509_MatchOperation_001 { type component GeneralComp { } testcase TC_NegSem_1509_MatchOperation_001() runs on GeneralComp { var integer v_valueOne := 20; var integer v_valueTwo := 22; if (match(v_valueOne, v_valueTwo)) { // shall fail as both actual parameters refer to values setverdict(fail); } else { setverdict(true); } } control{ execute(TC_NegSem_1509_MatchOperation_001()); } } No newline at end of file Loading
15_templates/1509_match_operation/NegSem_1509_MatchOperation_001.ttcn +1 −1 Original line number Diff line number Diff line /***************************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:15.9, Ensure that the match operation refuses two templates as parameters. ** @purpose 1:15.9, Ensure that the match operation refuses two templates as actual parameters. ** @verdict pass reject *****************************************************************/ Loading
15_templates/1509_match_operation/NegSem_1509_MatchOperation_002.ttcn 0 → 100644 +27 −0 Original line number Diff line number Diff line /***************************************************************** ** @author STF 409 ** @version $Rev: 150 $ ** @purpose 1:15.9, Ensure that the match operation refuses two values as actual parameters. ** @verdict pass reject *****************************************************************/ module NegSem_1509_MatchOperation_001 { type component GeneralComp { } testcase TC_NegSem_1509_MatchOperation_001() runs on GeneralComp { var integer v_valueOne := 20; var integer v_valueTwo := 22; if (match(v_valueOne, v_valueTwo)) { // shall fail as both actual parameters refer to values setverdict(fail); } else { setverdict(true); } } control{ execute(TC_NegSem_1509_MatchOperation_001()); } } No newline at end of file