Commit 6cd35fdf authored by zeiss's avatar zeiss
Browse files

No commit message

No commit message
parent a9499178
Loading
Loading
Loading
Loading
+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
 *****************************************************************/

+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