Test352T.ttcn 2.16 KB
Newer Older
1
/******************************************************************************
balaskoa's avatar
balaskoa committed
2
 * Copyright (c) 2000-2020 Ericsson Telecom AB
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
 *
 * Contributors:
 *   Balasko, Jeno
 *   Kulcsar, Endre
 *   Szabados, Kristof
 *
 ******************************************************************************/
module Test352T
{
import from Test352A all;

const MySequenceOfType1 mySequenceOfValue1B :=
{
3,664,234,-1 ,0
}

const MySequenceOfType2 mySequenceOfValue2B :=
{
'0011'B, '1'B, '00'B
}

const MySequenceOfType3 mySequenceOfValue3B :=
{
'FFAA'O, '1234'O, '00'O
}

const MySequenceOfType4 mySequenceOfValue4B :=
{
true, false, true
}

const MySequenceOfType5 mySequenceOfValue5B :=
{

{
     field1 :=  5,
     field2 :=  true,
     field4 :=  '1234567890FF'O,
     field5 := '10'B,
     field6 :=   a1
      },

       {
       field1  := 77,
       field2  := false,
       field4   := '1234AA'O,
       field5   := '01'B,
       field6   := c1
       }

}

const MySequenceOfType6 mySequenceOfValue6B :=
{

 {
     field1  := 5,
     field4  := '1234567890FF'O,
     field2  := true,
     field5  := '10'B,
     field6   := a2
      },

       {
       field5  :=  '01'B,
       field1  := 77,
       field2  := false,
       field4   := '1234AA'O,
       field6   := c2
       }

}

const MySequenceOfType7 mySequenceOfValue7B :=
{

       {
        field1  :=  5
       },

       {
       field2  :=  false
       }

 }

type component MyMainComponent
    {}

testcase Test() runs on MyMainComponent
{

if ((mySequenceOfValue1A == mySequenceOfValue1B)
and (mySequenceOfValue2B == mySequenceOfValue2B)
and (mySequenceOfValue3B == mySequenceOfValue3B)
and (mySequenceOfValue4B == mySequenceOfValue4B)
and (mySequenceOfValue5B == mySequenceOfValue5B)
and (mySequenceOfValue6B == mySequenceOfValue6B)
and (mySequenceOfValue7B == mySequenceOfValue7B))

   {setverdict ( pass );}
 else {  setverdict ( fail );}

}

control
    {
    execute (Test())
    }

}