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 listing
13 ** @verdict pass reject
14 ***************************************************/
16 module Sem_B010202_complemented_value_list_007 {
18 type enumerated EnumeratedType {e_black, e_white, e_green};
20 type record RecordType {
26 type union UnionType {
32 type record MessageType {
35 EnumeratedType field3,
40 type record of integer RoI;
42 type port loopbackPort message {
44 } with {extension "internal"}
46 type component GeneralComp {
47 port loopbackPort messagePort
50 testcase TC_Sem_B010202_complemented_value_list_007() runs on GeneralComp {
52 var MessageType v_testMessage;
54 template RoI m_RoI1 := {1, 2, (6..9)};
56 template MessageType mw_matchingTemplate:=
58 field1 := complement(all from m_RoI1, 100),//The type of the complemented template list and the member type of the template in the all from clause shall be compatible
59 field2 := complement("test string","something else"),
60 field3 := complement(e_green,e_black),
61 field4 := complement({a:=1,b:=1,c:=false},{a:=1,b:=2,c:=true}),
62 field5 := complement({a:=1},{b:=e_white})
69 field4 := {a:=1,b:=2,c:=false},
73 connect(self:messagePort, self:messagePort);
74 messagePort.send(v_testMessage);
77 [] messagePort.receive(mw_matchingTemplate) {
80 [] messagePort.receive {
87 execute(TC_Sem_B010202_complemented_value_list_007());