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.3.3, Ensure that the IUT correctly handles permutation within arrays
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
16 module Sem_B010303_permutation_006 {
19 type record MessageType {
26 type port loopbackPort message {
28 } with {extension "internal"}
31 type component GeneralComp {
32 port loopbackPort messagePort
35 testcase TC_Sem_B010303_permutation_006() runs on GeneralComp {
37 var MessageType v_testMessage;
38 var template integer mw_field1 [4] := { permutation ( 1, 2, 3 ), 5 };
39 var template integer mw_field2 [4] := { permutation ( 1, 2, ? ), 5 };
40 var template integer mw_field3 [4] := { permutation ( 1, 2, 3 ), * };
41 var template integer mw_field4 [4] := { permutation ( (1,2,3), 2, 3 ), 5 };
43 template MessageType mw_matchingTemplate:= {
57 connect(self:messagePort, self:messagePort);
58 messagePort.send(v_testMessage);
61 [] messagePort.receive(mw_matchingTemplate) {
64 [] messagePort.receive {
71 execute(TC_Sem_B010303_permutation_006());