conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / B_matching_incoming_values / B01_template_matching / B0102_matching_mechanisms / B010206_superset / Sem_B010206_superset_009.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.6, Ensure that the IUT correctly handles template matching of superset definition
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15
16 module Sem_B010206_superset_009 {
17 type set of integer SoI;
18
19 type SoI MessageType;
20
21 type port loopbackPort message {
22 inout MessageType;
23 } with {extension "internal"}
24
25
26 type component GeneralComp {
27 port loopbackPort messagePort;
28 }
29
30 testcase TC_NegSem_B010206_superset_009() runs on GeneralComp {
31
32 var MessageType v_testMessage;
33
34 template MessageType mw_matchingTemplate := superset(1,10,3);
35
36 v_testMessage := {1}; //the set of values shall contain at least as many elements as the SuperSet template for successful match
37
38 connect(self:messagePort, self:messagePort);
39 messagePort.send(v_testMessage);
40
41 alt {
42 [] messagePort.receive(mw_matchingTemplate) {
43 setverdict(fail);
44 }
45 [] messagePort.receive {
46 setverdict(pass);
47 }
48 }
49
50 }
51
52 control {
53 execute(TC_NegSem_B010206_superset_009());
54 }
55 }
56
This page took 0.032283 seconds and 5 git commands to generate.