Commit 28c5bd8d authored by zeiss's avatar zeiss
Browse files

No commit message

No commit message
parent 22faa4a6
Loading
Loading
Loading
Loading
+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 templates as parameters. 
 ** @verdict  pass reject
 *****************************************************************/

module NegSem_1509_MatchOperation_001 {

type component GeneralComp { }

template integer m_lessThan10 := (-infinity..9);
template integer m_second := -20;

testcase TC_NegSem_1509_MatchOperation_001() runs on GeneralComp {
	if (match(m_second, m_lessThan10)) { // shall fail as both actual parameters refer to templates
		setverdict(fail);
	} else {
		setverdict(true);
	}
}

control{
    execute(TC_NegSem_1509_MatchOperation_001());
}

}
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
/*****************************************************************
 ** @author   STF 409
 ** @version  $Rev: 150 $
 ** @purpose  1:15.9, Ensure that ...
 ** @verdict  pass accept, noexecution
 ** @purpose  1:15.9, Ensure that the match operation works as expected on a template with range restriction when the tested value is inside the range.
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

module Sem_1509_MatchOperation_001 {
+2 −2
Original line number Diff line number Diff line
/*****************************************************************
 ** @author   STF 409
 ** @version  $Rev: 150 $
 ** @purpose  1:15.9, Ensure that ...
 ** @verdict  pass accept, noexecution
 ** @purpose  1:15.9, Ensure that the match operation works as expected on a template with range restriction when the tested value is outside the range.
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

module Sem_1509_MatchOperation_002 {