conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 07_expressions / 0701_operators / 070102_list_operator / Sem_070102_ListOperator_006.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:7.1.2, Ensure that the list operator on record of is evaluated correctly.
13 ** @verdict pass accept, ttcn3verdict:pass
14 *****************************************************************/
15 module Sem_070102_ListOperator_006 {
16
17 type component GeneralComp {
18 }
19
20 type record of integer IntegerArray;
21
22 testcase TC_Sem_070102_ListOperator_006() runs on GeneralComp {
23 var IntegerArray v1 := {0, 1, 2};
24 var IntegerArray v2 := {3, 4, 5};
25 var IntegerArray v3 := {6};
26
27 var IntegerArray v_i := v1 & v2 & v3;
28
29 //var IntegerArray v_i := {0, 1, 2} & {3, 4, 5} & {6}; cannot determine type
30
31 var IntegerArray v_reference := {0, 1, 2, 3, 4, 5, 6};
32
33 if (v_i == v_reference) {
34 setverdict(pass);
35 } else {
36 setverdict(fail);
37 }
38 }
39
40 control{
41 execute(TC_Sem_070102_ListOperator_006());
42 }
43
44 }
This page took 0.043505 seconds and 5 git commands to generate.