Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / ASN1 / Test360 / Test360T.ttcn
CommitLineData
970ed795 1/******************************************************************************
3abe9331 2 * Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
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 ******************************************************************************/
8module Test360T
9{
10
11import from Test360A all;
12
13const MyChoiceType myChoiceValue1B
14:= {field1 := 347}
15
16const MyChoiceType myChoiceValue2B
17:= {field2 := true}
18
19const MyChoiceType myChoiceValue3B
20:= {field3 := '0011'B}
21
22const MyChoiceType myChoiceValue4B
23:= {field4 := 'FFFF'O}
24
25const MyChoiceType myChoiceValue5B
26:= {field5 :=
27{
28field1 := 67,
29field2 := false,
30field4 := 'FFAA66'O,
31field5 := '010101'B,
32field6 := a1
33}}
34
35const MyChoiceType myChoiceValue6B
36:= {field6 :=
37{
38 field1 := 439,
39 field2 := true,
40 field5 := '001100'B,
41 field6 := b2,
42 field4 := 'AA'O
43}}
44
45const MyChoiceType myChoiceValue7B
46:= {field7 := {field5 := '101010'B } }
47
48type component MyMainComponent
49 {}
50
51testcase Test() runs on MyMainComponent
52{
53
54if ((myChoiceValue1A == myChoiceValue1B)
55and (myChoiceValue2A == myChoiceValue2B)
56and (myChoiceValue3A == myChoiceValue3B)
57and (myChoiceValue4A == myChoiceValue4B)
58and (myChoiceValue5A == myChoiceValue5B)
59and (myChoiceValue6A == myChoiceValue6B)
60and (myChoiceValue7A == myChoiceValue7B))
61 {setverdict ( pass );}
62 else { setverdict ( fail );}
63
64}
65
66control
67 {
68 execute (Test())
69 }
70
71}
This page took 0.029168 seconds and 5 git commands to generate.