conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 06_types_and_values / 0602_structured_types_and_values / 060204_enumerated_type_and_values / NegSem_060204_enumerated_type_and_values_008.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:6.2.4, constant with the same name as one of enumerated values of the imported parent type
13 ** @verdict pass reject
14 ***************************************************/
15
16 // The following requirement is tested:
17 // When a TTCN-3 module parameter, formal parameter, constant, variable,
18 // non-parameterized template or parameterized template with all formal
19 // parameters having default values of an imported enumerated type is defined,
20 // the name of that definition shall not be the same as any of the enumerated
21 // values of that type.
22
23 module NegSem_060204_enumerated_type_and_values_008 {
24
25 import from NegSem_060204_enumerated_type_and_values_008_import all;
26
27 type component GeneralComp {
28 }
29
30 const EDays Monday := Tuesday;
31
32 testcase TC_NegSem_060204_enumerated_type_and_values_008() runs on GeneralComp {
33 log(Monday);
34 setverdict(pass);
35 }
36
37 control {
38 execute(TC_NegSem_060204_enumerated_type_and_values_008());
39 }
40 }
This page took 0.03858 seconds and 5 git commands to generate.