Loading 15_templates/1509_match_operation/NegSem_1509_MatchOperation_001.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 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 15_templates/1509_match_operation/Sem_1509_MatchOperation_001.ttcn +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 { Loading 15_templates/1509_match_operation/Sem_1509_MatchOperation_002.ttcn +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 { Loading Loading
15_templates/1509_match_operation/NegSem_1509_MatchOperation_001.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 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
15_templates/1509_match_operation/Sem_1509_MatchOperation_001.ttcn +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 { Loading
15_templates/1509_match_operation/Sem_1509_MatchOperation_002.ttcn +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 { Loading