1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:B.1.2.2, Ensure that the IUT correctly handles template matching of complemented value omit
13 ** @verdict pass reject
14 ***************************************************/
16 //Restriction e) The complement of a template list shall not match omit.
18 module NegSem_B010202_complemented_value_list_004 {
25 type port loopbackPort message {
27 } with {extension "internal"}
29 type component GeneralComp {
30 port loopbackPort messagePort
33 testcase TC_NegSem_B010202_complemented_value_list_004() runs on GeneralComp {
35 var MyRec v_testMessage;
37 template MyRec mw_matchingTemp:={field1:=1, field2:=omit};
39 template MyRec mw_matchingTemplate:=complement(mw_matchingTemp);
41 v_testMessage:= {field1:=1, field2:=omit}; // fail, field1:=1 is not accepted in matching
43 connect(self:messagePort, self:messagePort);
44 messagePort.send(v_testMessage);
47 [] messagePort.receive(mw_matchingTemplate) {
50 [] messagePort.receive {
57 execute(TC_NegSem_B010202_complemented_value_list_004());