conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / B_matching_incoming_values / B01_template_matching / B0102_matching_mechanisms / B010207_subset / Sem_B010207_subset_007.ttcn
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
7 *
8 * Contributors:
9 * Adrien Kirjak – initial implementation
10 *
11 ** @version 0.0.1
12 ** @purpose 1:B.1.2.7, Ensure that the IUT correctly handles template matching of subset definition
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15
16 //Restriction e)
17 /*individual members shall not resolve to AnyValueOrNone and individual fields of the template in the all from clause shall not resolve to AnyElementsOrNone or permutation..*/
18
19 module Sem_B010207_subset_007 {
20
21 type set of integer SoI;
22
23 type port loopbackPort message {
24 inout SoI
25 } with {extension "internal"}
26
27 type component GeneralComp {
28 port loopbackPort messagePort
29 }
30
31 testcase TC_Sem_B010207_subset_007() runs on GeneralComp {
32
33 var SoI v_testMessage;
34
35 template SoI Template:= {1,?};
36
37 template SoI mw_matchingTemplate:= subset(all from Template);
38
39 v_testMessage:={2};
40
41 connect(self:messagePort, self:messagePort);
42 messagePort.send(v_testMessage);
43
44 alt {
45 [] messagePort.receive(mw_matchingTemplate) {
46 setverdict(pass);
47 }
48 [] messagePort.receive {
49 setverdict(fail);
50 }
51 }
52 }
53
54 control{
55 execute(TC_Sem_B010207_subset_007());
56 }
57
58 }
59
This page took 0.031408 seconds and 5 git commands to generate.