conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 06_types_and_values / 0602_structured_types_and_values / 060206_anytype / Sem_060206_anytype_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:6.2.0.6, ensure that ensure that anytype comprise octetstring and charstring
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15 module Sem_060206_anytype_006 {
16
17 type component GeneralComp {
18
19 var anytype MyVarOne, MyVarTwo;
20 var octetstring MyVarThree;
21 var charstring MyString1;
22 }
23
24 testcase TC_Sem_060206_anytype_006() runs on GeneralComp {
25
26 MyVarOne.octetstring := 'FF70'O; //a float in anytype
27 MyVarTwo.charstring := "abc"; // a charstring in the same anytype
28
29 MyVarThree := MyVarOne.octetstring;
30 MyString1 := MyVarTwo.charstring&"def"; // "abc" & "def" =>"abcdef"
31
32 if ( match(MyVarThree, 'FF70'O) and match(MyString1, "abcdef") ) {
33 setverdict(pass);
34 }
35 else {
36 setverdict(fail);
37 }
38
39 }
40
41 control {
42 execute(TC_Sem_060206_anytype_006());
43 }
44
45 }
46 with {
47 extension "anytype octetstring, charstring"
48 }
This page took 0.031708 seconds and 5 git commands to generate.