1 .******************************************************************************
2 .* Copyright (c) 2000-2015 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 .******************************************************************************/
11 .* EDML webpage: http://cpi.ericsson.se/dwaxe/
12 .* EDML2PDF converter: http://dwaxe.ericsson.se/x2pdf
13 .* EDML user guide: http://www.lmc.ericsson.se/~lmcmarg/isit/edml_ug.html
15 .* Document header information
16 :docname.Test Description
21 :prep.ETH/RZX Ferenc Kovacs
22 :appr.ETH/RZ (Gyula Koos)
25 :title.Test description of the Semantic Analyzer: Old test cases
27 .*---------------------------------------------------------------------*
29 .*---------------------------------------------------------------------*
30 .*---------------------------------------------------------------------*
32 .*---------------------------------------------------------------------*
34 REV DATE PREPARED CHANGE
35 __________________________________________________
36 2010-07-02 EKRISZA support for non-complete record/record ofs.
37 - 2005-02-19 ESNDPAL New document for TITAN R6
39 .*---------------------------------------------------------------------*
41 .*---------------------------------------------------------------------*
42 This document contains old test cases from the previous TITAN project
43 for TTCN-3 Semantic Analyser. These test cases shall be moved to
44 different test descriptions in forthcoming projects.
46 .*---------------------------------------------------------------------*
47 :h2.Positive test cases for Compound types
48 .*---------------------------------------------------------------------*
50 .*---------------------------------------------------------------------*
51 :h3.Positive test cases regarding value list notation - constant
52 .*---------------------------------------------------------------------*
55 <TC - Positive test cases regarding value list notation - constant>
59 <MODULE TTCN Temp Temp.ttcn>
63 type record aTest {integer i, charstring c, bTest r optional}
64 type record bTest {integer i , charstring c optional}
66 type union uTest {aTest a, bTest b}
68 const aTest c1 := {1, "a", {2, "b"}}
69 const aTest c2 := {1, "a", {2, omit}}
70 const aTest c3 := {1, "a", omit}
72 const aTest c4 := {1, "a", {i := 2, c := "b"}}
73 const aTest c5 := {i := 1, c := "a", r := {2, omit}}
75 const bTest c6 := {2, "b"}
76 const aTest c7 := {1, "a", c6}
78 const uTest u1 := {a := {1, "a", {2, "b"}}}
79 const uTest u2 := {a := {1, "a", {i := 2, c := "b"}}}
80 const uTest u3 := {a := {i := 1, c := "a", r := {2, omit}}}
81 const uTest u4 := {a := {1, "a", c6}}
85 <RESULT IF_PASS NEGATIVE>
92 .*---------------------------------------------------------------------*
93 :h3.Positive test cases regarding value list notation - template
94 .*---------------------------------------------------------------------*
97 <TC - Positive test cases regarding value list notation - template>
101 <MODULE TTCN Temp Temp.ttcn>
105 type record aTest {integer i, charstring c, bTest r optional}
106 type record bTest {integer i , charstring c optional}
108 type union uTest {aTest a, bTest b}
110 template aTest c1 := {1, "a", {2, "b"}}
111 template aTest c2 := {1, "a", {2, omit}}
112 template aTest c3 := {1, "a", omit}
114 template aTest c4 := {1, "a", {i := 2, c := "b"}}
115 template aTest c5 := {i := 1, c := "a", r := {2, omit}}
117 template bTest c6 := {2, "b"}
118 template aTest c7 := {1, "a", c6}
120 template uTest u1 := {a := {1, "a", {2, "b"}}}
121 template uTest u2 := {a := {1, "a", {i := 2, c := "b"}}}
122 template uTest u3 := {a := {i := 1, c := "a", r := {2, omit}}}
123 template uTest u4 := {a := {1, "a", c6}}
129 <RESULT IF_PASS NEGATIVE>
137 .*---------------------------------------------------------------------*
138 :h2.Wrong order in value list notation (type)
139 .*---------------------------------------------------------------------*
141 .*---------------------------------------------------------------------*
142 :h3.Record fields in wrong order - constant
143 .*---------------------------------------------------------------------*
146 <TC - Record fields in wrong order - constant>
150 <MODULE TTCN Temp Temp.ttcn>
154 type record aTest {integer i, charstring c, bTest r}
155 type record bTest {integer i , charstring c}
157 const aTest con := {{2, "bTest"},"aTest", 1}
161 <RESULT IF_PASS COUNT 1>
162 (?im)error.+?integer.+?value.+?expected
164 <RESULT IF_PASS COUNT 1>
165 (?im)error.+?Record.+?value.+?expected
167 <RESULT IF_PASS COUNT 2>
174 .*---------------------------------------------------------------------*
175 :h3.Contained record fields in wrong order - constant
176 .*---------------------------------------------------------------------*
179 <TC - Contained record fields in wrong order - constant>
183 <MODULE TTCN Temp Temp.ttcn>
187 type record aTest {integer i, charstring c, bTest r}
188 type record bTest {integer i, charstring c}
190 const aTest con := {1, "aTest",{"bTest",3}}
195 <RESULT IF_PASS COUNT 1>
196 (?im)error.+?integer.+?value.+?expected
198 <RESULT IF_PASS COUNT 1>
199 (?im)error.+?character.+?string.+?value.+?expected
201 <RESULT IF_PASS COUNT 2>
208 .*---------------------------------------------------------------------*
209 :h3.Omitted field in wrong place - constant
210 .*---------------------------------------------------------------------*
213 <TC - Omitted field in wrong place - constant>
217 <MODULE TTCN Temp Temp.ttcn>
221 type record aTest {integer i, charstring c, bTest r}
222 type record bTest {integer i optional, charstring c}
224 const aTest con := {1, "aTest", {"bTest", omit}}
229 <RESULT IF_PASS COUNT 1>
230 (?im)error.+?integer.+?value.+?expected
232 <RESULT IF_PASS COUNT 1>
233 (?im)error.+?omit.+?not.+?allowed
235 <RESULT IF_PASS COUNT 2>
242 .*---------------------------------------------------------------------*
243 :h3.Contained record fields in wrong order inside record of - constant
244 .*---------------------------------------------------------------------*
247 <TC - Contained record fields in wrong order inside record of - constant>
251 <MODULE TTCN Temp Temp.ttcn>
255 type record of bTest aTest;
256 type record bTest {integer i , charstring c}
258 const aTest con := {{1, "aTest"}, {"bTest",2}}
262 <RESULT IF_PASS COUNT 1>
263 (?im)error.+?integer.+?value.+?expected
265 <RESULT IF_PASS COUNT 1>
266 (?im)error.+?character.+?string.+?value.+?expected
268 <RESULT IF_PASS COUNT 2>
275 .*---------------------------------------------------------------------*
276 :h3.Contained record fields in wrong order inside union - constant
277 .*---------------------------------------------------------------------*
280 <TC - Contained record fields in wrong order inside union - constant>
284 <MODULE TTCN Temp Temp.ttcn>
288 type record aTest {integer i, charstring c, bTest r}
289 type record bTest {integer i , charstring c}
291 type union cTest {aTest a, bTest b}
293 const cTest con := {b := {1, 2}}
297 <RESULT IF_PASS COUNT 1>
298 (?im)error.+?character.+?string.+?value.+?expected
300 <RESULT IF_PASS COUNT 1>
307 .*---------------------------------------------------------------------*
308 :h3.Wrong value in record of - constant
309 .*---------------------------------------------------------------------*
312 <TC - Wrong value in record of - constant>
316 <MODULE TTCN Temp Temp.ttcn>
320 type record of bTest aTest;
321 type set bTest {integer i, boolean b}
322 const aTest con := {1, {b := true, i := 1}}
326 <RESULT IF_PASS COUNT 1>
327 (?im)error.+?Set.+?value.+?expected
329 <RESULT IF_PASS COUNT 1>
336 .*---------------------------------------------------------------------*
337 :h3.Wrong value in contained record inside union - constant
338 .*---------------------------------------------------------------------*
341 <TC - Wrong value in contained record inside union - constant>
345 <MODULE TTCN Temp Temp.ttcn>
349 type record bTest {integer i , charstring c}
350 type union cTest {integer i, bTest b}
352 const cTest con := {b := {"aTest", "bTest"}}
357 <RESULT IF_PASS COUNT 1>
358 (?im)error.+?integer.+?value.+?expected
360 <RESULT IF_PASS COUNT 1>
367 .*---------------------------------------------------------------------*
368 :h3.Wrong values in record - constant
369 .*---------------------------------------------------------------------*
372 <TC - Wrong values in record - constant>
376 <MODULE TTCN Temp Temp.ttcn>
380 type record bTest {integer i , cTest u}
381 type union cTest {integer i, boolean b}
383 const bTest con := {1, 2}
387 <RESULT IF_PASS COUNT 1>
388 (?im)error.+?union.+?value.+?expected
390 <RESULT IF_PASS COUNT 1>
397 .*---------------------------------------------------------------------*
398 :h3.Value with wrong type in record - constant1
399 .*---------------------------------------------------------------------*
402 <TC - Value with wrong type in record - constant1>
406 <MODULE TTCN Temp Temp.ttcn>
410 type integer iType (1, 2, 3, 4)
411 type record bTest {iType i}
413 const bTest con := {true}
417 <RESULT IF_PASS COUNT 1>
418 (?im)error.+?integer.+?value.+?expected
420 <RESULT IF_PASS COUNT 1>
427 .*---------------------------------------------------------------------*
428 :h3.Value with wrong type in record - constant2
429 .*---------------------------------------------------------------------*
432 <TC - Value with wrong type in record - constant2>
436 <MODULE TTCN Temp Temp.ttcn>
440 type integer iType (1, 2, 3, 4)
441 type record bTest {iType i}
443 const bTest con := {str2int("6")}
447 <RESULT IF_PASS COUNT 1>
448 (?im)error.+?not.+?valid.+?value.+?for.+?subtype
450 <RESULT IF_PASS COUNT 1>
457 .*---------------------------------------------------------------------*
458 :h3.Wrong value in contained record, bitstring - constant
459 .*---------------------------------------------------------------------*
462 <TC - Wrong value in contained record, bitstring - constant>
466 <MODULE TTCN Temp Temp.ttcn>
470 type record aTest {integer i, bTest r}
471 type record bTest {integer i , bitstring b}
473 const aTest con := {1, {2, 1}}
478 <RESULT IF_PASS COUNT 1>
479 (?im)error.+?bitstring.+?value.+?expected
481 <RESULT IF_PASS COUNT 1>
488 .*---------------------------------------------------------------------*
489 :h3.Wrong value in contained record, hexstring - constant
490 .*---------------------------------------------------------------------*
493 <TC - Wrong value in contained record, hexstring - constant>
497 <MODULE TTCN Temp Temp.ttcn>
501 type record aTest {integer i, bTest r}
502 type record bTest {integer i , hexstring h}
504 const aTest con := {1, {2, 1}}
509 <RESULT IF_PASS COUNT 1>
510 (?im)error.+?hexstring.+?value.+?expected
512 <RESULT IF_PASS COUNT 1>
519 .*---------------------------------------------------------------------*
520 :h3.Wrong value in contained record, octetstring - constant
521 .*---------------------------------------------------------------------*
524 <TC - Wrong value in contained record, octetstring - constant>
528 <MODULE TTCN Temp Temp.ttcn>
532 type record aTest {integer i, bTest r}
533 type record bTest {integer i , octetstring o}
535 const aTest con := {1, {2, 1}}
539 <RESULT IF_PASS COUNT 1>
540 (?im)error.+?octetstring.+?value.+?expected
542 <RESULT IF_PASS COUNT 1>
549 .*---------------------------------------------------------------------*
550 :h3.Wrong value in contained record, boolean - constant
551 .*---------------------------------------------------------------------*
554 <TC - Wrong value in contained record, boolean - constant>
558 <MODULE TTCN Temp Temp.ttcn>
562 type record aTest {integer i, bTest r}
563 type record bTest {integer i , boolean b}
565 const aTest con := {1, {2, 1}}
569 <RESULT IF_PASS COUNT 1>
570 (?im)error.+?boolean.+?value.+?expected
572 <RESULT IF_PASS COUNT 1>
579 .*---------------------------------------------------------------------*
580 :h3.Record fields in wrong order - template
581 .*---------------------------------------------------------------------*
584 <TC - Record fields in wrong order - template>
588 <MODULE TTCN Temp Temp.ttcn>
592 type record aTest {integer i, charstring c, bTest r}
593 type record bTest {integer i , charstring c}
595 template aTest con := {{2, "bTest"},"aTest", 1}
599 <RESULT IF_PASS COUNT 1>
600 (?im)error.+?value.+?list.+?notation.+?cannot.+?used.+?for.+?type.+?integer
602 <RESULT IF_PASS COUNT 1>
603 (?im)error.+?Record.+?value.+?expected
605 <RESULT IF_PASS COUNT 2>
612 .*---------------------------------------------------------------------*
613 :h3.Contained record fields in wrong order - template
614 .*---------------------------------------------------------------------*
617 <TC - Contained record fields in wrong order - template>
621 <MODULE TTCN Temp Temp.ttcn>
625 type record aTest {integer i, charstring c, bTest r}
626 type record bTest {integer i, charstring c}
628 template aTest con := {1, "aTest",{"bTest",3}}
633 <RESULT IF_PASS COUNT 1>
634 (?im)error.+?integer.+?value.+?expected
636 <RESULT IF_PASS COUNT 1>
637 (?im)error.+?character.+?string.+?value.+?expected
639 <RESULT IF_PASS COUNT 2>
646 .*---------------------------------------------------------------------*
647 :h3.Omitted field in wrong place - template
648 .*---------------------------------------------------------------------*
651 <TC - Omitted field in wrong place - template>
655 <MODULE TTCN Temp Temp.ttcn>
659 type record aTest {integer i, charstring c, bTest r}
660 type record bTest {integer i optional, charstring c}
662 template aTest con := {1, "aTest", {"bTest", omit}}
667 <RESULT IF_PASS COUNT 1>
668 (?im)error.+?integer.+?value.+?expected
670 <RESULT IF_PASS COUNT 1>
671 (?im)error.+?omit.+?not.+?allowed.+?context
673 <RESULT IF_PASS COUNT 2>
680 .*---------------------------------------------------------------------*
681 :h3.Contained record fields in wrong order inside record of - template
682 .*---------------------------------------------------------------------*
685 <TC - Contained record fields in wrong order inside record of - template>
689 <MODULE TTCN Temp Temp.ttcn>
693 type record of bTest aTest;
694 type record bTest {integer i , charstring c}
696 template aTest con := {{1, "aTest"}, {"bTest",2}}
700 <RESULT IF_PASS COUNT 1>
701 (?im)error.+?integer.+?value.+?expected
703 <RESULT IF_PASS COUNT 1>
704 (?im)error.+?character.+?string.+?value.+?expected
706 <RESULT IF_PASS COUNT 2>
713 .*---------------------------------------------------------------------*
714 :h3.Contained record fields in wrong order inside union - template
715 .*---------------------------------------------------------------------*
718 <TC - Contained record fields in wrong order inside union - template>
722 <MODULE TTCN Temp Temp.ttcn>
726 type record aTest {integer i, charstring c, bTest r}
727 type record bTest {integer i , charstring c}
729 type union cTest {aTest a, bTest b}
731 template cTest con := {b := {1, 2}}
735 <RESULT IF_PASS COUNT 1>
736 (?im)error.+?character.+?string.+?value.+?expected
738 <RESULT IF_PASS COUNT 1>
745 .*---------------------------------------------------------------------*
746 :h3.Wrong value in record of - template
747 .*---------------------------------------------------------------------*
750 <TC - Wrong value in record of - template>
754 <MODULE TTCN Temp Temp.ttcn>
758 type record of bTest aTest;
759 type set bTest {integer i, boolean b}
760 template aTest con := {1, {b := true, i := 1}}
764 <RESULT IF_PASS COUNT 1>
765 (?im)error.+?Set.+?value.+?expected
767 <RESULT IF_PASS COUNT 1>
774 .*---------------------------------------------------------------------*
775 :h3.Wrong value in contained record inside union - template
776 .*---------------------------------------------------------------------*
779 <TC - Wrong value in contained record inside union - template>
783 <MODULE TTCN Temp Temp.ttcn>
787 type record bTest {integer i , charstring c}
788 type union cTest {integer i, bTest b}
790 template cTest con := {b := {"aTest", "bTest"}}
795 <RESULT IF_PASS COUNT 1>
796 (?im)error.+?integer.+?value.+?expected
798 <RESULT IF_PASS COUNT 1>
805 .*---------------------------------------------------------------------*
806 :h3.Wrong values in record - template
807 .*---------------------------------------------------------------------*
810 <TC - Wrong values in record - template>
814 <MODULE TTCN Temp Temp.ttcn>
818 type record bTest {integer i , cTest u}
819 type union cTest {integer i, boolean b}
821 template bTest con := {1, 2}
825 <RESULT IF_PASS COUNT 1>
826 (?im)error.+?union.+?value.+?expected
828 <RESULT IF_PASS COUNT 1>
835 .*---------------------------------------------------------------------*
836 :h3.Value with wrong type in record - template1
837 .*---------------------------------------------------------------------*
840 <TC - Value with wrong type in record - template1>
844 <MODULE TTCN Temp Temp.ttcn>
848 type integer iType (1, 2, 3, 4)
849 type record bTest {iType i}
851 template bTest con := {true}
855 <RESULT IF_PASS COUNT 1>
856 (?im)error.+?integer.+?value.+?expected
858 <RESULT IF_PASS COUNT 1>
865 .*---------------------------------------------------------------------*
866 :h3.Value with wrong type in record - template2
867 .*---------------------------------------------------------------------*
870 <TC - Value with wrong type in record - template2>
874 <MODULE TTCN Temp Temp.ttcn>
878 type integer iType (1, 2, 3, 4)
879 type record bTest {iType i}
881 template bTest con := {str2int("6")}
885 <RESULT IF_PASS COUNT 1>
886 (?im)error.+?not.+?valid.+?value.+?for.+?subtype
888 <RESULT IF_PASS COUNT 1>
895 .*---------------------------------------------------------------------*
896 :h3.Wrong value in contained record, bitstring - template
897 .*---------------------------------------------------------------------*
900 <TC - Wrong value in contained record, bitstring - template>
904 <MODULE TTCN Temp Temp.ttcn>
908 type record aTest {integer i, bTest r}
909 type record bTest {integer i , bitstring b}
911 template aTest con := {1, {2, 1}}
916 <RESULT IF_PASS COUNT 1>
917 (?im)error.+?bitstring.+?value.+?expected
919 <RESULT IF_PASS COUNT 1>
926 .*---------------------------------------------------------------------*
927 :h3.Wrong value in contained record, hexstring - template
928 .*---------------------------------------------------------------------*
931 <TC - Wrong value in contained record, hexstring - template>
935 <MODULE TTCN Temp Temp.ttcn>
939 type record aTest {integer i, bTest r}
940 type record bTest {integer i , hexstring h}
942 template aTest con := {1, {2, 1}}
947 <RESULT IF_PASS COUNT 1>
948 (?im)error.+?hexstring.+?value.+?expected
950 <RESULT IF_PASS COUNT 1>
957 .*---------------------------------------------------------------------*
958 :h3.Wrong value in contained record, octetstring - template
959 .*---------------------------------------------------------------------*
962 <TC - Wrong value in contained record, octetstring - template>
966 <MODULE TTCN Temp Temp.ttcn>
970 type record aTest {integer i, bTest r}
971 type record bTest {integer i , octetstring o}
973 template aTest con := {1, {2, 1}}
977 <RESULT IF_PASS COUNT 1>
978 (?im)error.+?octetstring.+?value.+?expected
980 <RESULT IF_PASS COUNT 1>
987 .*---------------------------------------------------------------------*
988 :h3.Wrong value in contained record, boolean - template
989 .*---------------------------------------------------------------------*
992 <TC - Wrong value in contained record, boolean - template>
996 <MODULE TTCN Temp Temp.ttcn>
1000 type record aTest {integer i, bTest r}
1001 type record bTest {integer i , boolean b}
1003 template aTest con := {1, {2, 1}}
1007 <RESULT IF_PASS COUNT 1>
1008 (?im)error.+?boolean.+?value.+?expected
1010 <RESULT IF_PASS COUNT 1>
1017 .*---------------------------------------------------------------------*
1018 :h2.Wrong order in value list notation (number)
1019 .*---------------------------------------------------------------------*
1021 .*---------------------------------------------------------------------*
1022 :h3.Extra value at the end of value list in record - constant
1023 .*---------------------------------------------------------------------*
1026 <TC - Extra value at the end of value list in record - constant>
1030 <MODULE TTCN Temp Temp.ttcn>
1034 type record aTest {integer i, charstring c, bTest r}
1035 type record bTest {integer i , charstring c}
1036 const aTest con := {2, "aTest", {1, "bTest"}, 1}
1041 <RESULT IF_PASS COUNT 1>
1042 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1044 <RESULT IF_PASS COUNT 1>
1051 .*---------------------------------------------------------------------*
1052 :h3.Extra value at the beginning of value list in record - constant
1053 .*---------------------------------------------------------------------*
1056 <TC - Extra value at the beginning of value list in record - constant>
1060 <MODULE TTCN Temp Temp.ttcn>
1064 type record aTest {integer i, charstring c, bTest r}
1065 type record bTest {integer i , charstring c}
1066 const aTest con := {1, 2, "aTest", {3, "bTest"}}
1071 <RESULT IF_PASS COUNT 1>
1072 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1074 <RESULT IF_PASS COUNT 1>
1075 (?im)error.+?character.+?string.+?value.+?expected
1077 <RESULT IF_PASS COUNT 1>
1078 (?im)error.+?record.+?value.+?expected
1080 <RESULT IF_PASS COUNT 3>
1087 .*---------------------------------------------------------------------*
1088 :h3.Extra value in contained record - constant
1089 .*---------------------------------------------------------------------*
1092 <TC - Extra value in contained record - constant>
1096 <MODULE TTCN Temp Temp.ttcn>
1100 type record aTest {integer i, charstring c, bTest r}
1101 type record bTest {integer i , charstring c}
1102 const aTest con := {2, "aTest", {3, "bTest", '0010010'B}}
1107 <RESULT IF_PASS COUNT 1>
1108 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1110 <RESULT IF_PASS COUNT 1>
1117 .*---------------------------------------------------------------------*
1118 :h3.Extra value in record defined empty - constant
1119 .*---------------------------------------------------------------------*
1122 <TC - Extra value in record defined empty - constant>
1126 <MODULE TTCN Temp Temp.ttcn>
1130 type record aTest {}
1131 const aTest con := {1}
1136 <RESULT IF_PASS COUNT 1>
1137 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1139 <RESULT IF_PASS COUNT 1>
1146 .*---------------------------------------------------------------------*
1147 :h3.Extra value in contained record defined empty - constant
1148 .*---------------------------------------------------------------------*
1151 <TC - Extra value in contained record defined empty - constant>
1155 <MODULE TTCN Temp Temp.ttcn>
1159 type record aTest {integer i, bTest b}
1160 type record bTest {}
1161 const aTest con := {2, {2}}
1166 <RESULT IF_PASS COUNT 1>
1167 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1169 <RESULT IF_PASS COUNT 1>
1176 .*---------------------------------------------------------------------*
1177 :h3.Missing value in contained record - constant
1178 .*---------------------------------------------------------------------*
1181 <TC - Missing value in contained record - constant>
1185 <MODULE TTCN Temp Temp.ttcn>
1189 type record aTest {integer i, charstring c, bTest r}
1190 type record bTest {integer i , charstring c optional}
1191 const aTest con := {2, "aTest", {3}}
1196 <RESULT IF_PASS NEGATIVE>
1203 .*---------------------------------------------------------------------*
1204 :h3.Missing value in record - constant
1205 .*---------------------------------------------------------------------*
1208 <TC - Missing value in record - constant>
1212 <MODULE TTCN Temp Temp.ttcn>
1216 type record aTest {integer i, charstring c, bTest r optional}
1217 type record bTest {integer i , charstring c optional}
1218 const aTest con := {2, "aTest"}
1223 <RESULT IF_PASS NEGATIVE>
1230 .*---------------------------------------------------------------------*
1231 :h3.Extra value in record of with length restriction - constant1
1232 .*---------------------------------------------------------------------*
1235 <TC - Extra value in record of with length restriction - constant1>
1239 <MODULE TTCN Temp Temp.ttcn>
1243 type record aTest {integer i, bTest r optional}
1244 type record length (0) of integer bTest;
1245 const aTest con := {1, {1}}
1250 <RESULT IF_PASS COUNT 1>
1251 (?im)error: \{ 1 \} is not a valid value for type `\@Temp.bTest' which has subtype length\(0\)
1253 <RESULT IF_PASS COUNT 1>
1260 .*---------------------------------------------------------------------*
1261 :h3.Extra value in record of with length restriction - constant2
1262 .*---------------------------------------------------------------------*
1265 <TC - Extra value in record of with length restriction - constant2>
1269 <MODULE TTCN Temp Temp.ttcn>
1273 type record aTest {integer i, bTest r optional}
1274 type record length (2) of integer bTest;
1275 const aTest con := {1, {1, 1, 1}}
1280 <RESULT IF_PASS COUNT 1>
1281 (?im)error: \{ 1, 1, 1 \} is not a valid value for type `\@Temp.bTest' which has subtype length\(2\)
1283 <RESULT IF_PASS COUNT 1>
1290 .*---------------------------------------------------------------------*
1291 :h3.Missing value in record of with length restriction - constant
1292 .*---------------------------------------------------------------------*
1295 <TC - Missing value in record of with length restriction - constant>
1299 <MODULE TTCN Temp Temp.ttcn>
1303 type record aTest {integer i, bTest r optional}
1304 type record length (2) of integer bTest;
1305 const aTest con := {1, {1}}
1310 <RESULT IF_PASS COUNT 1>
1311 (?im)error: \{ 1 \} is not a valid value for type `\@Temp.bTest' which has subtype length\(2\)
1313 <RESULT IF_PASS COUNT 1>
1320 .*---------------------------------------------------------------------*
1321 :h3.Extra value in set of with length restriction - constant
1322 .*---------------------------------------------------------------------*
1325 <TC - Extra value in set of with length restriction - constant>
1329 <MODULE TTCN Temp Temp.ttcn>
1333 type record aTest {integer i, bTest s optional}
1334 type set length (2) of integer bTest;
1335 const aTest con := {1, {1,1,1}}
1340 <RESULT IF_PASS COUNT 1>
1341 (?im)error: \{ 1, 1, 1 \} is not a valid value for type `\@Temp.bTest' which has subtype length\(2\)
1343 <RESULT IF_PASS COUNT 1>
1350 .*---------------------------------------------------------------------*
1351 :h3.Missing value in set of with length restriction - constant
1352 .*---------------------------------------------------------------------*
1355 <TC - Missing value in set of with length restriction - constant>
1359 <MODULE TTCN Temp Temp.ttcn>
1363 type record aTest {integer i, bTest s optional}
1364 type set length (2) of integer bTest;
1365 const aTest con := {1, {1}}
1370 <RESULT IF_PASS COUNT 1>
1371 (?im)error: \{ 1 \} is not a valid value for type `\@Temp.bTest' which has subtype length\(2\)
1373 <RESULT IF_PASS COUNT 1>
1380 .*---------------------------------------------------------------------*
1381 :h3.Extra values in set of with length restriction - constant
1382 .*---------------------------------------------------------------------*
1385 <TC - Extra values in set of with length restriction - constant>
1389 <MODULE TTCN Temp Temp.ttcn>
1393 type set of bTest aTest
1394 type set length (0) of integer bTest;
1395 const aTest con := {{1}, {1,1}}
1400 <RESULT IF_PASS COUNT 1>
1401 (?im)error: \{ 1 \} is not a valid value for type `\@Temp.bTest' which has subtype length\(0\)
1403 <RESULT IF_PASS COUNT 1>
1404 (?im)error: \{ 1, 1 \} is not a valid value for type `\@Temp.bTest' which has subtype length\(0\)
1406 <RESULT IF_PASS COUNT 2>
1413 .*---------------------------------------------------------------------*
1414 :h3.Missing values in set of with length restriction - constant
1415 .*---------------------------------------------------------------------*
1418 <TC - Missing values in set of with length restriction - constant>
1422 <MODULE TTCN Temp Temp.ttcn>
1426 type set of bTest aTest
1427 type set length (3) of integer bTest;
1428 const aTest con := {{}, {1}}
1433 <RESULT IF_PASS COUNT 1>
1434 (?im)error: \{ \} is not a valid value for type `\@Temp.bTest' which has subtype length\(3\)
1436 <RESULT IF_PASS COUNT 1>
1437 (?im)error: \{ 1 \} is not a valid value for type `\@Temp.bTest' which has subtype length\(3\)
1439 <RESULT IF_PASS COUNT 2>
1446 .*---------------------------------------------------------------------*
1447 :h3.Extra value in record inside union - constant
1448 .*---------------------------------------------------------------------*
1451 <TC - Extra value in record inside union - constant>
1455 <MODULE TTCN Temp Temp.ttcn>
1459 type record bTest {}
1460 type union cTest {integer i, bTest b}
1461 const cTest con := {b := {1, 2}}
1466 <RESULT IF_PASS COUNT 1>
1467 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1469 <RESULT IF_PASS COUNT 1>
1476 .*---------------------------------------------------------------------*
1477 :h3.Missing value in contained record inside union - constant
1478 .*---------------------------------------------------------------------*
1481 <TC - Missing value in contained record inside union - constant>
1485 <MODULE TTCN Temp Temp.ttcn>
1489 type record aTest {integer i, bTest r}
1490 type record bTest {integer i , integer ii}
1491 type union cTest {aTest a, integer i}
1492 const cTest con := {a := {1, {1}}}
1497 <RESULT IF_PASS NEGATIVE>
1504 .*---------------------------------------------------------------------*
1505 :h3.Extra value at the end of value list in record - template
1506 .*---------------------------------------------------------------------*
1509 <TC - Extra value at the end of value list in record - template>
1513 <MODULE TTCN Temp Temp.ttcn>
1517 type record aTest {integer i, charstring c, bTest r}
1518 type record bTest {integer i , charstring c}
1519 template aTest con := {2, "aTest", {1, "bTest"}, 1}
1524 <RESULT IF_PASS COUNT 1>
1525 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1527 <RESULT IF_PASS COUNT 1>
1534 .*---------------------------------------------------------------------*
1535 :h3.Extra value at the beginning of value list in record - template
1536 .*---------------------------------------------------------------------*
1539 <TC - Extra value at the beginning of value list in record - template>
1543 <MODULE TTCN Temp Temp.ttcn>
1547 type record aTest {integer i, charstring c, bTest r}
1548 type record bTest {integer i , charstring c}
1549 template aTest con := {1, 2, "aTest", {3, "bTest"}}
1554 <RESULT IF_PASS COUNT 1>
1555 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1557 <RESULT IF_PASS COUNT 1>
1558 (?im)error.+?character.+?string.+?value.+?expected
1560 <RESULT IF_PASS COUNT 1>
1561 (?im)error.+?Record.+?value.+?expected
1563 <RESULT IF_PASS COUNT 3>
1570 .*---------------------------------------------------------------------*
1571 :h3.Extra value in contained record - template
1572 .*---------------------------------------------------------------------*
1575 <TC - Extra value in contained record - template>
1579 <MODULE TTCN Temp Temp.ttcn>
1583 type record aTest {integer i, charstring c, bTest r}
1584 type record bTest {integer i , charstring c}
1585 template aTest con := {2, "aTest", {3, "bTest", '0010010'B}}
1590 <RESULT IF_PASS COUNT 1>
1591 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1593 <RESULT IF_PASS COUNT 1>
1600 .*---------------------------------------------------------------------*
1601 :h3.Extra value in record defined empty - template
1602 .*---------------------------------------------------------------------*
1605 <TC - Extra value in record defined empty - template>
1609 <MODULE TTCN Temp Temp.ttcn>
1613 type record aTest {}
1614 template aTest con := {1}
1619 <RESULT IF_PASS COUNT 1>
1620 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1622 <RESULT IF_PASS COUNT 1>
1629 .*---------------------------------------------------------------------*
1630 :h3.Extra value in contained record defined empty - template
1631 .*---------------------------------------------------------------------*
1634 <TC - Extra value in contained record defined empty - template>
1638 <MODULE TTCN Temp Temp.ttcn>
1642 type record aTest {integer i, bTest b}
1643 type record bTest {}
1644 template aTest con := {2, {2}}
1649 <RESULT IF_PASS COUNT 1>
1650 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1652 <RESULT IF_PASS COUNT 1>
1659 .*---------------------------------------------------------------------*
1660 :h3.Missing value in contained record - template
1661 .*---------------------------------------------------------------------*
1664 <TC - Missing value in contained record - template>
1668 <MODULE TTCN Temp Temp.ttcn>
1672 type record aTest {integer i, charstring c, bTest r}
1673 type record bTest {integer i , charstring c optional}
1674 template aTest con := {2, "aTest", {3}}
1679 <RESULT IF_PASS NEGATIVE>
1680 (?im)error.+?Too.+?few.+?elements.+?in.+?value.+?list.+?notation
1682 <RESULT IF_PASS NEGATIVE>
1689 .*---------------------------------------------------------------------*
1690 :h3.Missing value in record - template
1691 .*---------------------------------------------------------------------*
1694 <TC - Missing value in record - template>
1698 <MODULE TTCN Temp Temp.ttcn>
1702 type record aTest {integer i, charstring c, bTest r optional}
1703 type record bTest {integer i , charstring c optional}
1704 template aTest con := {2, "aTest"}
1709 <RESULT IF_PASS NEGATIVE>
1710 (?im)error.+?Too.+?few.+?elements.+?in.+?value.+?list.+?notation
1712 <RESULT IF_PASS NEGATIVE>
1719 .*---------------------------------------------------------------------*
1720 :h3.Extra value in record of with length restriction - template1
1721 .*---------------------------------------------------------------------*
1724 <TC - Extra value in record of with length restriction - template1>
1728 <MODULE TTCN Temp Temp.ttcn>
1732 type record aTest {integer i, bTest r optional}
1733 type record length (0) of integer bTest;
1734 template aTest con := {1, {1}}
1739 <RESULT IF_PASS COUNT 1>
1740 (?im)\berror\b.+?There.+?must.+?not.+?be.+?than.+?0.+?elements
1742 <RESULT IF_PASS COUNT 1>
1749 .*---------------------------------------------------------------------*
1750 :h3.Extra value in record of with length restriction - template2
1751 .*---------------------------------------------------------------------*
1754 <TC - Extra value in record of with length restriction - template2>
1758 <MODULE TTCN Temp Temp.ttcn>
1762 type record aTest {integer i, bTest r optional}
1763 type record length (2) of integer bTest;
1764 template aTest con := {1, {1, 1, 1}}
1769 <RESULT IF_PASS COUNT 1>
1770 (?im)\berror\b.+?There.+?must.+?not.+?be.+?than.+?2.+?elements
1772 <RESULT IF_PASS COUNT 1>
1779 .*---------------------------------------------------------------------*
1780 :h3.Missing value in record of with length restriction - template
1781 .*---------------------------------------------------------------------*
1784 <TC - Missing value in record of with length restriction - template>
1788 <MODULE TTCN Temp Temp.ttcn>
1792 type record aTest {integer i, bTest r optional}
1793 type record length (2) of integer bTest;
1794 template aTest con := {1, {1}}
1799 <RESULT IF_PASS COUNT 1>
1800 (?im)\berror\b.+?At.+?least.+?2.+?elements.+?must.+?be.+?present
1802 <RESULT IF_PASS COUNT 1>
1809 .*---------------------------------------------------------------------*
1810 :h3.Extra value in set of with length restriction - template
1811 .*---------------------------------------------------------------------*
1814 <TC - Extra value in set of with length restriction - template>
1818 <MODULE TTCN Temp Temp.ttcn>
1822 type record aTest {integer i, bTest s optional}
1823 type set length (2) of integer bTest;
1824 template aTest con := {1, {1,1,1}}
1829 <RESULT IF_PASS COUNT 1>
1830 (?im)\berror\b.+?There.+?must.+?not.+?be.+?than.+?2.+?elements
1832 <RESULT IF_PASS COUNT 1>
1839 .*---------------------------------------------------------------------*
1840 :h3.Missing value in set of with length restriction - template
1841 .*---------------------------------------------------------------------*
1844 <TC - Missing value in set of with length restriction - template>
1848 <MODULE TTCN Temp Temp.ttcn>
1852 type record aTest {integer i, bTest s optional}
1853 type set length (2) of integer bTest;
1854 template aTest con := {1, {1}}
1859 <RESULT IF_PASS COUNT 1>
1860 (?im)\berror\b.+?At.+?least.+?2.+?elements.+?must.+?be.+?present
1862 <RESULT IF_PASS COUNT 1>
1869 .*---------------------------------------------------------------------*
1870 :h3.Extra values in set of with length restriction - template
1871 .*---------------------------------------------------------------------*
1874 <TC - Extra values in set of with length restriction - template>
1878 <MODULE TTCN Temp Temp.ttcn>
1882 type set of bTest aTest
1883 type set length (0) of integer bTest;
1884 template aTest con := {{1}, {1,1}}
1889 <RESULT IF_PASS COUNT 2>
1890 (?im)\berror\b.+?There.+?must.+?not.+?be.+?than.+?0.+?elements
1892 <RESULT IF_PASS COUNT 2>
1899 .*---------------------------------------------------------------------*
1900 :h3.Missing values in set of with length restriction - template
1901 .*---------------------------------------------------------------------*
1904 <TC - Missing values in set of with length restriction - template>
1908 <MODULE TTCN Temp Temp.ttcn>
1912 type set of bTest aTest
1913 type set length (3) of integer bTest;
1914 template aTest con := {{}, {1}}
1919 <RESULT IF_PASS COUNT 2>
1920 (?im)\berror\b.+?At.+?least.+?3.+?elements.+?must.+?be.+?present
1922 <RESULT IF_PASS COUNT 2>
1929 .*---------------------------------------------------------------------*
1930 :h3.Extra value in record inside union - template
1931 .*---------------------------------------------------------------------*
1934 <TC - Extra value in record inside union - template>
1938 <MODULE TTCN Temp Temp.ttcn>
1942 type record bTest {}
1943 type union cTest {integer i, bTest b}
1944 template cTest con := {b := {1, 2}}
1949 <RESULT IF_PASS COUNT 1>
1950 (?im)error.+?Too.+?many.+?elements.+?in.+?value.+?list.+?notation
1952 <RESULT IF_PASS COUNT 1>
1959 .*---------------------------------------------------------------------*
1960 :h3.Missing value in contained record inside union - template
1961 .*---------------------------------------------------------------------*
1964 <TC - Missing value in contained record inside union - template>
1968 <MODULE TTCN Temp Temp.ttcn>
1972 type record aTest {integer i, bTest r}
1973 type record bTest {integer i , integer ii}
1974 type union cTest {aTest a, integer i}
1975 template cTest con := {a := {1, {1}}}
1980 <RESULT IF_PASS NEGATIVE>
1981 (?im)error.+?Too.+?few.+?elements.+?in.+?value.+?list.+?notation
1983 <RESULT IF_PASS NEGATIVE>
1990 .*---------------------------------------------------------------------*
1991 :h2.Wrong order in assignment notation
1992 .*---------------------------------------------------------------------*
1994 .*---------------------------------------------------------------------*
1995 :h3.Fields of record in wrong order - constant
1996 .*---------------------------------------------------------------------*
1999 <TC - Fields of record in wrong order - constant>
2003 <MODULE TTCN Temp Temp.ttcn>
2007 type record aTest {integer i, charstring c}
2008 const aTest con := {c := "aTest", i := 1}
2013 <RESULT IF_PASS COUNT 1>
2014 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?record.+?value
2016 <RESULT IF_PASS COUNT 1>
2023 .*---------------------------------------------------------------------*
2024 :h3.Fields of contained record in wrong order - constant
2025 .*---------------------------------------------------------------------*
2028 <TC - Fields of contained record in wrong order - constant>
2032 <MODULE TTCN Temp Temp.ttcn>
2036 type record aTest {integer i, bTest r}
2037 type record bTest {integer i , charstring c}
2038 const aTest con := {i := 1, r := {c := "bTest",i := 2}}
2043 <RESULT IF_PASS COUNT 1>
2044 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?record.+?value
2046 <RESULT IF_PASS COUNT 1>
2053 .*---------------------------------------------------------------------*
2054 :h3.Fields in record inside union in wrong order - constant
2055 .*---------------------------------------------------------------------*
2058 <TC - Fields in record inside union in wrong order - constant>
2062 <MODULE TTCN Temp Temp.ttcn>
2066 type record aTest {integer i, charstring c, bTest r}
2067 type record bTest {integer i , charstring c optional}
2068 type union cTest {aTest a, bTest b}
2069 const cTest con := {b := {c := "bTest", i := 1}}
2074 <RESULT IF_PASS COUNT 1>
2075 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?record.+?value
2077 <RESULT IF_PASS COUNT 1>
2084 .*---------------------------------------------------------------------*
2085 :h3.Fields in record inside union in wrong order - template
2086 .*---------------------------------------------------------------------*
2089 <TC - Fields in record inside union in wrong order - template>
2093 <MODULE TTCN Temp Temp.ttcn>
2097 type record aTest {integer i, charstring c, bTest r}
2098 type record bTest {integer i , charstring c optional}
2099 type union cTest {aTest a, bTest b}
2100 template cTest tem := {a := { i := 1, c := "aTest", r := {c := "bTest", i:= 1}}}
2105 <RESULT IF_PASS COUNT 1>
2106 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?template.+?record
2108 <RESULT IF_PASS COUNT 1>
2115 .*---------------------------------------------------------------------*
2116 :h3.Fields of record in wrong order - template
2117 .*---------------------------------------------------------------------*
2120 <TC - Fields of record in wrong order - template>
2124 <MODULE TTCN Temp Temp.ttcn>
2128 type record aTest {integer i, charstring c}
2129 template aTest tem := {c := "aTest", i := 1}
2134 <RESULT IF_PASS COUNT 1>
2135 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?template.+?record
2137 <RESULT IF_PASS COUNT 1>
2144 .*---------------------------------------------------------------------*
2145 :h3.Fields of contained record in wrong order - template
2146 .*---------------------------------------------------------------------*
2149 <TC - Fields of contained record in wrong order - template>
2153 <MODULE TTCN Temp Temp.ttcn>
2157 type record aTest {integer i, bTest r}
2158 type record bTest {integer i , charstring c}
2159 template aTest tem := {i := 1, r := {c := "bTest",i := 2}}
2164 <RESULT IF_PASS COUNT 1>
2165 (?im)error.+?Field.+?cannot.+?appear.+?after.+?in.+?template.+?record
2167 <RESULT IF_PASS COUNT 1>
2174 .*---------------------------------------------------------------------*
2175 :h2.Uninitialized field in record or set at declaration
2176 .*---------------------------------------------------------------------*
2178 .*---------------------------------------------------------------------*
2179 :h3.Missing field from record - constant
2180 .*---------------------------------------------------------------------*
2183 <TC - Missing field from record - constant>
2187 <MODULE TTCN Temp Temp.ttcn>
2191 type record aTest {integer i, charstring c}
2192 const aTest con := {i := 1}
2197 <RESULT IF_PASS COUNT 0>
2204 .*---------------------------------------------------------------------*
2205 :h3.Missing field from contained record - constant
2206 .*---------------------------------------------------------------------*
2209 <TC - Missing field from contained record - constant>
2213 <MODULE TTCN Temp Temp.ttcn>
2217 type record aTest {integer i, bTest r}
2218 type record bTest {integer i , charstring c}
2219 const aTest con := {i := 1, r := {c := "bTest"}}
2224 <RESULT IF_PASS COUNT 0>
2231 .*---------------------------------------------------------------------*
2232 :h3.Missing field from set - constant
2233 .*---------------------------------------------------------------------*
2236 <TC - Missing field from set - constant>
2240 <MODULE TTCN Temp Temp.ttcn>
2244 type set aTest {integer i, charstring c}
2245 const aTest con := {i := 1}
2250 <RESULT IF_PASS COUNT 0>
2257 .*---------------------------------------------------------------------*
2258 :h3.Missing field from contained set - constant
2259 .*---------------------------------------------------------------------*
2262 <TC - Missing field from contained set - constant>
2266 <MODULE TTCN Temp Temp.ttcn>
2270 type set aTest {integer i, bTest r}
2271 type set bTest {integer i , charstring c}
2272 const aTest con := {i := 1, r := {i := 2}}
2277 <RESULT IF_PASS COUNT 0>
2284 .*---------------------------------------------------------------------*
2285 :h3.Missing optional field from record - constant
2286 .*---------------------------------------------------------------------*
2289 <TC - Missing optional field from record - constant>
2293 <MODULE TTCN Temp Temp.ttcn>
2297 type record aTest {integer i, bTest r optional}
2298 type set bTest {integer i , charstring c}
2300 const aTest con := {i := 1}
2305 <RESULT IF_PASS COUNT 0>
2312 .*---------------------------------------------------------------------*
2313 :h3.Missing optional field from set - constant
2314 .*---------------------------------------------------------------------*
2317 <TC - Missing optional field from set - constant>
2321 <MODULE TTCN Temp Temp.ttcn>
2325 type set aTest {integer i, bTest r optional}
2326 type set bTest {integer i , charstring c}
2328 const aTest con := {i := 1}
2333 <RESULT IF_PASS COUNT 0>
2340 .*---------------------------------------------------------------------*
2341 :h3.Uninitialised constant assigned to record field - constant
2342 .*---------------------------------------------------------------------*
2345 <TC - Uninitialised constant assigned to record field - constant>
2349 <MODULE TTCN Temp Temp.ttcn>
2353 type record aTest {integer i, bTest r optional}
2354 type set of integer bTest;
2355 const bTest con1 := {1,2, -}
2356 const aTest con := {i := con1[2], r := omit}
2361 <RESULT IF_PASS COUNT 1>
2362 (?im)error.+?Not.+?used.+?symbol.+?is.+?not.+?allowed
2364 <RESULT IF_PASS COUNT 1>
2371 .*---------------------------------------------------------------------*
2372 :h3.Missing field from record - template
2373 .*---------------------------------------------------------------------*
2376 <TC - Missing field from record - template>
2380 <MODULE TTCN Temp Temp.ttcn>
2384 type record aTest {integer i, charstring c}
2385 template aTest tem := {i := 1}
2390 <RESULT IF_PASS COUNT 0>
2397 .*---------------------------------------------------------------------*
2398 :h3.Missing field from contained record - template
2399 .*---------------------------------------------------------------------*
2402 <TC - Missing field from contained record - template>
2406 <MODULE TTCN Temp Temp.ttcn>
2410 type record aTest {integer i, bTest r}
2411 type record bTest {integer i , charstring c}
2412 template aTest tem := {i := 1, r := {c := "bTest"}}
2417 <RESULT IF_PASS COUNT 0>
2424 .*---------------------------------------------------------------------*
2425 :h3.Missing field from set - template
2426 .*---------------------------------------------------------------------*
2429 <TC - Missing field from set - template>
2433 <MODULE TTCN Temp Temp.ttcn>
2437 type set aTest {integer i, charstring c}
2438 template aTest tem := {i := 1}
2443 <RESULT IF_PASS COUNT 0>
2450 .*---------------------------------------------------------------------*
2451 :h3.Missing field from contained set - template
2452 .*---------------------------------------------------------------------*
2455 <TC - Missing field from contained set - template>
2459 <MODULE TTCN Temp Temp.ttcn>
2463 type set aTest {integer i, bTest r}
2464 type set bTest {integer i , charstring c}
2465 template aTest tem := {i := 1, r := {i := 2}}
2470 <RESULT IF_PASS COUNT 0>
2477 .*---------------------------------------------------------------------*
2478 :h3.Missing optional field from record - template
2479 .*---------------------------------------------------------------------*
2482 <TC - Missing optional field from record - template>
2486 <MODULE TTCN Temp Temp.ttcn>
2490 type record aTest {integer i, bTest r optional}
2491 type set bTest {integer i , charstring c}
2493 template aTest tem := {i := 1}
2498 <RESULT IF_PASS COUNT 0>
2505 .*---------------------------------------------------------------------*
2506 :h3.Missing optional field from set - template
2507 .*---------------------------------------------------------------------*
2510 <TC - Missing optional field from set - template>
2514 <MODULE TTCN Temp Temp.ttcn>
2518 type set aTest {integer i, bTest r optional}
2519 type set bTest {integer i , charstring c}
2521 template aTest tem := {i := 1}
2526 <RESULT IF_PASS COUNT 0>
2533 .*---------------------------------------------------------------------*
2534 :h3.Uninitialised constant assigned to record field - template
2535 .*---------------------------------------------------------------------*
2538 <TC - Uninitialised constant assigned to record field - template>
2542 <MODULE TTCN Temp Temp.ttcn>
2546 type record aTest {integer i, bTest r optional}
2547 type set of integer bTest;
2548 template bTest tem1 := {1,2, -}
2549 template aTest tem := {i := tem1[2], r := omit}
2554 <RESULT IF_PASS COUNT 1>
2555 (?im)error.+?Not.+?used.+?symbol.+?is.+?not.+?allowed
2557 <RESULT IF_PASS COUNT 1>
2565 .*---------------------------------------------------------------------*
2566 :h2.Duplicate initialization of field in assigment notation
2567 .*---------------------------------------------------------------------*
2569 .*---------------------------------------------------------------------*
2570 :h3.Duplicate field in record
2571 .*---------------------------------------------------------------------*
2574 <TC - Duplicate field in record>
2578 <MODULE TTCN Temp Temp.ttcn>
2582 type record aTest {integer i, charstring c}
2583 const aTest con := {i := 1, i := 2, c := "aTest"}
2588 <RESULT IF_PASS COUNT 1>
2589 (?im)error.+?Duplicate.+?record.+?field
2591 <RESULT IF_PASS COUNT 1>
2592 (?im)note.+?Field.+?already.+?given.+?here
2594 <RESULT IF_PASS COUNT 1>
2601 .*---------------------------------------------------------------------*
2602 :h3.Duplicate field in contained record
2603 .*---------------------------------------------------------------------*
2606 <TC - Duplicate field in contained record>
2610 <MODULE TTCN Temp Temp.ttcn>
2614 type record aTest {integer i, bTest r}
2615 type record bTest {integer i , charstring c}
2616 const aTest con := {i := 1, r := {i := 2, i:= 3, c := "bTest"}}
2621 <RESULT IF_PASS COUNT 1>
2622 (?im)error.+?Duplicate.+?record.+?field
2624 <RESULT IF_PASS COUNT 1>
2625 (?im)note.+?Field.+?already.+?given.+?here
2627 <RESULT IF_PASS COUNT 1>
2634 .*---------------------------------------------------------------------*
2635 :h3.Duplicate field in set
2636 .*---------------------------------------------------------------------*
2639 <TC - Duplicate field in set>
2643 <MODULE TTCN Temp Temp.ttcn>
2647 type set aTest {integer i, bTest r}
2648 type set bTest {integer i , charstring c}
2649 const aTest con := { r := {i:= 2, c := "bTest"}, i := 1, r := {i:= 3, c := "bTest"}}
2654 <RESULT IF_PASS COUNT 1>
2655 (?im)error.+?Duplicate.+?set.+?field
2657 <RESULT IF_PASS COUNT 1>
2658 (?im)note.+?Field.+?already.+?given.+?here
2660 <RESULT IF_PASS COUNT 1>
2667 .*---------------------------------------------------------------------*
2668 :h3.Duplicate field in contained set
2669 .*---------------------------------------------------------------------*
2672 <TC - Duplicate field in contained set>
2676 <MODULE TTCN Temp Temp.ttcn>
2680 type set aTest {integer i, bTest r}
2681 type set bTest {integer i , charstring c}
2682 const aTest con := {i := 1, r := {i:= 3, c := "bTest", i:= 4}}
2687 <RESULT IF_PASS COUNT 1>
2688 (?im)error.+?Duplicate.+?set.+?field
2690 <RESULT IF_PASS COUNT 1>
2691 (?im)note.+?Field.+?already.+?given.+?here
2693 <RESULT IF_PASS COUNT 1>
2700 .*---------------------------------------------------------------------*
2701 :h3.Duplicate optional field in record
2702 .*---------------------------------------------------------------------*
2705 <TC - Duplicate optional field in record>
2709 <MODULE TTCN Temp Temp.ttcn>
2713 type record aTest {integer i, bTest r}
2714 type record bTest {integer i , charstring c optional}
2715 const aTest con := {i := 1, r := {i := 3, c := omit, c := "bTest"}}
2720 <RESULT IF_PASS COUNT 1>
2721 (?im)error.+?Duplicate.+?record.+?field
2723 <RESULT IF_PASS COUNT 1>
2724 (?im)note.+?Field.+?already.+?given.+?here
2726 <RESULT IF_PASS COUNT 1>
2733 .*---------------------------------------------------------------------*
2734 :h3.Duplicate optional field in set
2735 .*---------------------------------------------------------------------*
2738 <TC - Duplicate optional field in set>
2742 <MODULE TTCN Temp Temp.ttcn>
2746 type record aTest {integer i, bTest r}
2747 type set bTest {integer i , charstring c optional}
2748 const aTest con := {i := 1, r := {i := 3, c := omit, c := "bTest"}}
2753 <RESULT IF_PASS COUNT 1>
2754 (?im)error.+?Duplicate.+?set.+?field
2756 <RESULT IF_PASS COUNT 1>
2757 (?im)note.+?Field.+?already.+?given.+?here
2759 <RESULT IF_PASS COUNT 1>
2765 .*---------------------------------------------------------------------*
2766 :h2.Reference to non-existent field in assignment notation
2767 .*---------------------------------------------------------------------*
2769 .*---------------------------------------------------------------------*
2770 :h3.Reference to non-existent field in record
2771 .*---------------------------------------------------------------------*
2774 <TC - Reference to non-existent field in record>
2778 <MODULE TTCN Temp Temp.ttcn>
2782 type record aTest {integer i, charstring c}
2784 const aTest con := {i := 1, b := 2, c := "aTest"}
2788 <RESULT IF_PASS COUNT 1>
2789 (?im)error.+?Reference.+?to.+?non-existent.+?field
2791 <RESULT IF_PASS COUNT 1>
2798 .*---------------------------------------------------------------------*
2799 :h3.Reference to non-existent field in contained record
2800 .*---------------------------------------------------------------------*
2803 <TC - Reference to non-existent field in contained record>
2807 <MODULE TTCN Temp Temp.ttcn>
2811 type record aTest {integer i, bTest r}
2812 type record bTest {integer i , charstring c}
2814 const aTest con := {i := 1, r := {i := 2, b:= 3, c := "bTest"}}
2819 <RESULT IF_PASS COUNT 1>
2820 (?im)error.+?Reference.+?to.+?non-existent.+?field
2822 <RESULT IF_PASS COUNT 1>
2829 .*---------------------------------------------------------------------*
2830 :h3.Reference to non-existent field in set1
2831 .*---------------------------------------------------------------------*
2834 <TC - Reference to non-existent field in set1>
2838 <MODULE TTCN Temp Temp.ttcn>
2842 type set aTest {integer i, charstring c}
2844 const aTest con := {i := 1, c := "aTest", b := 2}
2849 <RESULT IF_PASS COUNT 1>
2850 (?im)error.+?Reference.+?to.+?non-existent.+?field
2852 <RESULT IF_PASS COUNT 1>
2859 .*---------------------------------------------------------------------*
2860 :h3.Reference to non-existent field in set2
2861 .*---------------------------------------------------------------------*
2864 <TC - Reference to non-existent field in set2>
2868 <MODULE TTCN Temp Temp.ttcn>
2872 type set aTest {integer i, bTest r}
2873 type set bTest {integer i , charstring c}
2874 const aTest con := {i := 1, r := {i:= 3, c := "bTest", b:= 4}}
2879 <RESULT IF_PASS COUNT 1>
2880 (?im)error.+?Reference.+?to.+?non-existent.+?field
2882 <RESULT IF_PASS COUNT 1>
2889 .*---------------------------------------------------------------------*
2890 :h3.Reference to non-existent field in union
2891 .*---------------------------------------------------------------------*
2894 <TC - Reference to non-existent field in union>
2898 <MODULE TTCN Temp Temp.ttcn>
2902 type union cTest {integer i, boolean b}
2903 const cTest con := {c := "abc"}
2908 <RESULT IF_PASS COUNT 1>
2909 (?im)error.+?Reference.+?to.+?non-existent.+?field
2911 <RESULT IF_PASS COUNT 1>
2918 .*---------------------------------------------------------------------*
2919 :h3.Reference to non-existent field in record inside union
2920 .*---------------------------------------------------------------------*
2923 <TC - Reference to non-existent field in record inside union>
2927 <MODULE TTCN Temp Temp.ttcn>
2931 type record bTest {integer i , charstring c}
2932 type union cTest {integer i, bTest b}
2933 const cTest con := {b := {i :=1, c := "bTest", ii := 2}}
2938 <RESULT IF_PASS COUNT 1>
2939 (?im)error.+?Reference.+?to.+?non-existent.+?field
2941 <RESULT IF_PASS COUNT 1>
2948 .*---------------------------------------------------------------------*
2949 :h3.Reference to non-existent field in contained union
2950 .*---------------------------------------------------------------------*
2953 <TC - Reference to non-existent field in contained union>
2957 <MODULE TTCN Temp Temp.ttcn>
2961 type union cTest {integer i, boolean b}
2962 type record of cTest bTest
2964 const bTest con := {{c :=1}}
2969 <RESULT IF_PASS COUNT 1>
2970 (?im)error.+?Reference.+?to.+?non-existent.+?field
2972 <RESULT IF_PASS COUNT 1>
2979 .*---------------------------------------------------------------------*
2980 :h3.Reference to non-existent field in empty record
2981 .*---------------------------------------------------------------------*
2984 <TC - Reference to non-existent field in empty record>
2988 <MODULE TTCN Temp Temp.ttcn>
2992 type record bTest {}
2994 const bTest con := {c := 1}
2998 <RESULT IF_PASS COUNT 1>
2999 (?im)error.+?Reference.+?to.+?non-existent.+?field
3001 <RESULT IF_PASS COUNT 1>
3008 .*---------------------------------------------------------------------*
3009 :h3.Reference to non-existent field in empty set
3010 .*---------------------------------------------------------------------*
3013 <TC - Reference to non-existent field in empty set>
3017 <MODULE TTCN Temp Temp.ttcn>
3023 const bTest con := {c := 1}
3027 <RESULT IF_PASS COUNT 1>
3028 (?im)error.+?Reference.+?to.+?non-existent.+?field
3030 <RESULT IF_PASS COUNT 1>
3036 .*---------------------------------------------------------------------*
3037 :h2.Omit value in mandatory field
3038 .*---------------------------------------------------------------------*
3040 .*---------------------------------------------------------------------*
3041 :h3.Omit value in mandatory field of set - constant
3042 .*---------------------------------------------------------------------*
3045 <TC - Omit value in mandatory field of set - constant>
3049 <MODULE TTCN Temp Temp.ttcn>
3053 type set aTest {integer i, charstring c}
3055 const aTest con := {i := omit, c := "aTest"}
3060 <RESULT IF_PASS COUNT 1>
3061 (?im)error.+?omit.+?not.+?allowed
3063 <RESULT IF_PASS COUNT 1>
3070 .*---------------------------------------------------------------------*
3071 :h3.Omit value in mandatory field of record - constant
3072 .*---------------------------------------------------------------------*
3075 <TC - Omit value in mandatory field of record - constant>
3079 <MODULE TTCN Temp Temp.ttcn>
3083 type record aTest {integer i, charstring c}
3085 const aTest con := {i := omit, c := "aTest"}
3090 <RESULT IF_PASS COUNT 1>
3091 (?im)error.+?omit.+?not.+?allowed
3093 <RESULT IF_PASS COUNT 1>
3100 .*---------------------------------------------------------------------*
3101 :h3.Omit value in mandatory field of contained set - constant
3102 .*---------------------------------------------------------------------*
3105 <TC - Omit value in mandatory field of contained set - constant>
3109 <MODULE TTCN Temp Temp.ttcn>
3113 type record aTest {integer i, bTest r optional}
3114 type set bTest {integer i , charstring c}
3115 const aTest con := {i := 1, r := {i := 2, c := omit}}
3120 <RESULT IF_PASS COUNT 1>
3121 (?im)error.+?omit.+?not.+?allowed
3123 <RESULT IF_PASS COUNT 1>
3130 .*---------------------------------------------------------------------*
3131 :h3.Omit value in mandatory field of contained record - constant
3132 .*---------------------------------------------------------------------*
3135 <TC - Omit value in mandatory field of contained record - constant>
3139 <MODULE TTCN Temp Temp.ttcn>
3143 type set aTest {integer i, bTest r optional}
3144 type record bTest {integer i , charstring c}
3145 const aTest con := {i := 1, r := {i := 2, c := omit}}
3150 <RESULT IF_PASS COUNT 1>
3151 (?im)error.+?omit.+?not.+?allowed
3153 <RESULT IF_PASS COUNT 1>
3158 .*---------------------------------------------------------------------*
3159 :h3.Omit value in mandatory field of contained record in union - constant
3160 .*---------------------------------------------------------------------*
3163 <TC - Omit value in mandatory field of contained record in union - constant>
3167 <MODULE TTCN Temp Temp.ttcn>
3171 type record bTest {charstring c}
3172 type union cTest {integer i, bTest b}
3173 const cTest con := {b := {omit}}
3178 <RESULT IF_PASS COUNT 1>
3179 (?im)error.+?omit.+?not.+?allowed
3181 <RESULT IF_PASS COUNT 1>
3188 .*---------------------------------------------------------------------*
3189 :h3.Omit value in mandatory field of set - template
3190 .*---------------------------------------------------------------------*
3193 <TC - Omit value in mandatory field of set - template>
3197 <MODULE TTCN Temp Temp.ttcn>
3201 type set aTest {integer i, charstring c}
3203 template aTest tem := {i := omit, c := "aTest"}
3208 <RESULT IF_PASS COUNT 1>
3209 (?im)error.+?omit.+?not.+?allowed.+?context
3211 <RESULT IF_PASS COUNT 1>
3218 .*---------------------------------------------------------------------*
3219 :h3.Omit value in mandatory field of record - template
3220 .*---------------------------------------------------------------------*
3223 <TC - Omit value in mandatory field of record - template>
3227 <MODULE TTCN Temp Temp.ttcn>
3231 type record aTest {integer i, charstring c}
3233 template aTest tem := {i := omit, c := "aTest"}
3238 <RESULT IF_PASS COUNT 1>
3239 (?im)error.+?omit.+?not.+?allowed.+?context
3241 <RESULT IF_PASS COUNT 1>
3248 .*---------------------------------------------------------------------*
3249 :h3.Omit value in mandatory field of contained set - template
3250 .*---------------------------------------------------------------------*
3253 <TC - Omit value in mandatory field of contained set - template>
3257 <MODULE TTCN Temp Temp.ttcn>
3261 type record aTest {integer i, bTest r optional}
3262 type set bTest {integer i , charstring c}
3264 template aTest tem := {i := 1, r := {i := 2, c := omit}}
3269 <RESULT IF_PASS COUNT 1>
3270 (?im)error.+?omit.+?not.+?allowed.+?context
3272 <RESULT IF_PASS COUNT 1>
3279 .*---------------------------------------------------------------------*
3280 :h3.Omit value in mandatory field of contained record - template
3281 .*---------------------------------------------------------------------*
3284 <TC - Omit value in mandatory field of contained record - template>
3288 <MODULE TTCN Temp Temp.ttcn>
3292 type set aTest {integer i, bTest r optional}
3293 type record bTest {integer i , charstring c}
3295 template aTest tem := {i := 1, r := {i := 2, c := omit}}
3300 <RESULT IF_PASS COUNT 1>
3301 (?im)error.+?omit.+?not.+?allowed.+?context
3303 <RESULT IF_PASS COUNT 1>
3310 .*---------------------------------------------------------------------*
3311 :h3.Omit value in mandatory field of contained record in union - template
3312 .*---------------------------------------------------------------------*
3315 <TC - Omit value in mandatory field of contained record in union - template>
3319 <MODULE TTCN Temp Temp.ttcn>
3323 type record bTest {charstring c}
3324 type union cTest {integer i, bTest b}
3325 template cTest tem := {b := {omit}}
3330 <RESULT IF_PASS COUNT 1>
3331 (?im)error.+?omit.+?not.+?allowed.+?context
3333 <RESULT IF_PASS COUNT 1>
3339 .*---------------------------------------------------------------------*
3340 :h2.Missing optional field in assignment notation
3341 .*---------------------------------------------------------------------*
3343 .*---------------------------------------------------------------------*
3344 :h3.Missing optional field in set - constant
3345 .*---------------------------------------------------------------------*
3348 <TC - Missing optional field in set - constant>
3352 <MODULE TTCN Temp Temp.ttcn>
3356 type set aTest {integer i, bTest r optional}
3357 type set bTest {integer i , charstring c}
3359 const aTest con := {i := 1}
3364 <RESULT IF_PASS COUNT 0>
3371 .*---------------------------------------------------------------------*
3372 :h3.Missing optional field in contained set - constant
3373 .*---------------------------------------------------------------------*
3376 <TC - Missing optional field in contained set - constant>
3380 <MODULE TTCN Temp Temp.ttcn>
3384 type set aTest {integer i, bTest r}
3385 type set bTest {integer i , charstring c optional}
3387 const aTest con := {i := 1, r := {i := 3}}
3392 <RESULT IF_PASS COUNT 0>
3399 .*---------------------------------------------------------------------*
3400 :h3.Missing optional field in record - constant
3401 .*---------------------------------------------------------------------*
3404 <TC - Missing optional field in record - constant>
3408 <MODULE TTCN Temp Temp.ttcn>
3412 type record aTest {integer i, bTest r optional}
3413 type set bTest {integer i , charstring c}
3415 const aTest con := {i := 1}
3420 <RESULT IF_PASS COUNT 0>
3427 .*---------------------------------------------------------------------*
3428 :h3.Missing optional field in contained record - constant
3429 .*---------------------------------------------------------------------*
3432 <TC - Missing optional field in contained record - constant>
3436 <MODULE TTCN Temp Temp.ttcn>
3440 type record aTest {integer i, bTest r}
3441 type record bTest {integer i , charstring c optional}
3443 const aTest con := {i := 1, r := {i := 3}}
3448 <RESULT IF_PASS COUNT 0>
3455 .*---------------------------------------------------------------------*
3456 :h3.Missing optional field in set - template
3457 .*---------------------------------------------------------------------*
3460 <TC - Missing optional field in set - template>
3464 <MODULE TTCN Temp Temp.ttcn>
3468 type set aTest {integer i, bTest r optional}
3469 type set bTest {integer i , charstring c}
3471 template aTest tem := {i := 1}
3476 <RESULT IF_PASS COUNT 0>
3483 .*---------------------------------------------------------------------*
3484 :h3.Missing optional field in contained set - template
3485 .*---------------------------------------------------------------------*
3488 <TC - Missing optional field in contained set - template>
3492 <MODULE TTCN Temp Temp.ttcn>
3496 type set aTest {integer i, bTest r}
3497 type set bTest {integer i , charstring c optional}
3499 template aTest tem := {i := 1, r := {i := 3}}
3504 <RESULT IF_PASS COUNT 0>
3511 .*---------------------------------------------------------------------*
3512 :h3.Missing optional field in record - template
3513 .*---------------------------------------------------------------------*
3516 <TC - Missing optional field in record - template>
3520 <MODULE TTCN Temp Temp.ttcn>
3524 type record aTest {integer i, bTest r optional}
3525 type set bTest {integer i , charstring c}
3527 template aTest tem := {i := 1}
3532 <RESULT IF_PASS COUNT 0>
3539 .*---------------------------------------------------------------------*
3540 :h3.Missing optional field in contained record - template
3541 .*---------------------------------------------------------------------*
3544 <TC - Missing optional field in contained record - template>
3548 <MODULE TTCN Temp Temp.ttcn>
3552 type record aTest {integer i, bTest r}
3553 type record bTest {integer i , charstring c optional}
3555 template aTest tem := {i := 1, r := {i := 3}}
3560 <RESULT IF_PASS COUNT 0>
3567 .*---------------------------------------------------------------------*
3568 :h3.Missing optional field in contained record inside union - constant
3569 .*---------------------------------------------------------------------*
3572 <TC - Missing optional field in contained record inside union - constant>
3576 <MODULE TTCN Temp Temp.ttcn>
3580 type record aTest {integer i, bTest r}
3581 type record bTest {integer i , charstring c optional}
3583 type union uType {aTest a, bTest b}
3585 const uType u := {a := {i := 1, r := {i:=2}}}
3589 <RESULT IF_PASS COUNT 0>
3596 .*---------------------------------------------------------------------*
3597 :h3.Missing optional field in contained record inside union - template
3598 .*---------------------------------------------------------------------*
3601 <TC - Missing optional field in contained record inside union - template>
3605 <MODULE TTCN Temp Temp.ttcn>
3609 type record aTest {integer i, bTest r}
3610 type record bTest {integer i , charstring c optional}
3612 type union uType {aTest a, bTest b}
3614 template uType u := {a := {i := 1, r := {i:=2}}}
3618 <RESULT IF_PASS COUNT 0>
3624 .*---------------------------------------------------------------------*
3625 :h2.Value list notation for union and set
3626 .*---------------------------------------------------------------------*
3628 .*---------------------------------------------------------------------*
3629 :h3.Value list notation for set - constant
3630 .*---------------------------------------------------------------------*
3633 <TC - Value list notation for set - constant>
3637 <MODULE TTCN Temp Temp.ttcn>
3641 type set aTest {integer i, bTest r}
3642 type set bTest {integer i , charstring c optional}
3644 const aTest con := {1, {i :=2, c := omit}}
3649 <RESULT IF_PASS COUNT 1>
3650 (?im)error.+?Value.+?list.+?notation.+?cannot.+?be.+?used.+?for.+?set.+?type
3652 <RESULT IF_PASS COUNT 1>
3659 .*---------------------------------------------------------------------*
3660 :h3.Value list notation for contained set - constant
3661 .*---------------------------------------------------------------------*
3664 <TC - Value list notation for contained set - constant>
3668 <MODULE TTCN Temp Temp.ttcn>
3672 type record aTest {integer i, bTest r}
3673 type set bTest {integer i , charstring c optional}
3675 const aTest con := {1, {2, omit}}
3680 <RESULT IF_PASS COUNT 1>
3681 (?im)error.+?Value.+?list.+?notation.+?cannot.+?be.+?used.+?for.+?set.+?type
3683 <RESULT IF_PASS COUNT 1>
3690 .*---------------------------------------------------------------------*
3691 :h3.Value list notation for contained set inside union - constant
3692 .*---------------------------------------------------------------------*
3695 <TC - Value list notation for contained set inside union - constant>
3699 <MODULE TTCN Temp Temp.ttcn>
3702 type set bTest {integer i , charstring c optional}
3703 type union uTest {integer i, bTest b}
3705 const uTest u := {b := {1, "bTest"}}
3710 <RESULT IF_PASS COUNT 1>
3711 (?im)error.+?Value.+?list.+?notation.+?cannot.+?be.+?used.+?for.+?set.+?type
3713 <RESULT IF_PASS COUNT 1>
3720 .*---------------------------------------------------------------------*
3721 :h3.Value list notation for set - template
3722 .*---------------------------------------------------------------------*
3725 <TC - Value list notation for set - template>
3729 <MODULE TTCN Temp Temp.ttcn>
3733 type set aTest {integer i, bTest r}
3734 type set bTest {integer i , charstring c optional}
3736 template aTest tem := {1, {i :=2, c := omit}}
3741 <RESULT IF_PASS COUNT 1>
3742 (?im)error.+?Value.+?list.+?notation.+?not.+?allowed.+?for.+?set.+?type
3744 <RESULT IF_PASS COUNT 1>
3751 .*---------------------------------------------------------------------*
3752 :h3.Value list notation for contained set - template
3753 .*---------------------------------------------------------------------*
3756 <TC - Value list notation for contained set - template>
3760 <MODULE TTCN Temp Temp.ttcn>
3764 type record aTest {integer i, bTest r}
3765 type set bTest {integer i , charstring c optional}
3767 template aTest tem := {1, {2, omit}}
3772 <RESULT IF_PASS COUNT 1>
3773 (?im)error.+?Value.+?list.+?notation.+?not.+?allowed.+?for.+?set.+?type
3775 <RESULT IF_PASS COUNT 1>
3782 .*---------------------------------------------------------------------*
3783 :h3.Value list notation for contained set inside union - template
3784 .*---------------------------------------------------------------------*
3787 <TC - Value list notation for contained set inside union - template>
3791 <MODULE TTCN Temp Temp.ttcn>
3794 type set bTest {integer i , charstring c optional}
3795 type union uTest {integer i, bTest b}
3797 template uTest u := {b := {1, "bTest"}}
3802 <RESULT IF_PASS COUNT 1>
3803 (?im)error.+?Value.+?list.+?notation.+?not.+?allowed.+?for.+?set.+?type
3805 <RESULT IF_PASS COUNT 1>
3811 .*---------------------------------------------------------------------*
3812 :h2.More than one union element is specified
3813 .*---------------------------------------------------------------------*
3815 .*---------------------------------------------------------------------*
3816 :h3.More than one element is defined in union - constant
3817 .*---------------------------------------------------------------------*
3820 <TC - More than one element is defined in union - constant>
3824 <MODULE TTCN Temp Temp.ttcn>
3828 type union uTest {integer i, boolean b}
3830 const uTest con := {i := 1, b := true}
3835 <RESULT IF_PASS COUNT 1>
3836 (?im)error.+?Only.+?one.+?field.+?expected.+?in.+?union.+?value
3838 <RESULT IF_PASS COUNT 1>
3845 .*---------------------------------------------------------------------*
3846 :h3.More than one element is defined in contained union - constant1
3847 .*---------------------------------------------------------------------*
3850 <TC - More than one element is defined in contained union - constant1>
3854 <MODULE TTCN Temp Temp.ttcn>
3858 type record aTest {integer i, uTest u}
3859 type union uTest {integer i, boolean b}
3861 const aTest con:= { i := 1, u := {i := 1, b := true}}
3866 <RESULT IF_PASS COUNT 1>
3867 (?im)error.+?Only.+?one.+?field.+?expected.+?in.+?union.+?value
3869 <RESULT IF_PASS COUNT 1>
3876 .*---------------------------------------------------------------------*
3877 :h3.More than one element is defined in contained union - constant2
3878 .*---------------------------------------------------------------------*
3881 <TC - More than one element is defined in contained union - constant2>
3885 <MODULE TTCN Temp Temp.ttcn>
3889 type record aTest {integer i, cTest u}
3890 type union cTest {integer i, boolean b}
3892 const aTest con := { i := 1, u := {i := 1, b := true, c := 2}}
3897 <RESULT IF_PASS COUNT 1>
3898 (?im)error.+?Only.+?one.+?field.+?expected.+?in.+?union.+?value
3900 <RESULT IF_PASS COUNT 1>
3907 .*---------------------------------------------------------------------*
3908 :h3.More than one element is defined in union - template
3909 .*---------------------------------------------------------------------*
3912 <TC - More than one element is defined in union - template>
3916 <MODULE TTCN Temp Temp.ttcn>
3919 type union uTest {integer i, boolean b}
3921 template uTest tem := {i := 1, b := true}
3926 <RESULT IF_PASS COUNT 1>
3927 (?im)error.+?template.+?for.+?union.+?type.+?must.+?contain.+?exactly.+?one.+?selected.+?field
3929 <RESULT IF_PASS COUNT 1>
3936 .*---------------------------------------------------------------------*
3937 :h3.More than one element is defined in contained union - template
3938 .*---------------------------------------------------------------------*
3941 <TC - More than one element is defined in contained union - template>
3945 <MODULE TTCN Temp Temp.ttcn>
3949 type record aTest {integer i, uTest u}
3950 type union uTest {integer i, boolean b}
3952 template aTest tem:= { i := 1, u := {i := 1, b := true}}
3957 <RESULT IF_PASS COUNT 1>
3958 (?im)error.+?template.+?for.+?union.+?type.+?must.+?contain.+?exactly.+?one.+?selected.+?field
3960 <RESULT IF_PASS COUNT 1>
3967 .*---------------------------------------------------------------------*
3968 :h3.More than one element is defined in contained union - template_2
3969 .*---------------------------------------------------------------------*
3972 <TC - More than one element is defined in contained union - template_2>
3976 <MODULE TTCN Temp Temp.ttcn>
3980 type record aTest {integer i, cTest u}
3981 type union cTest {integer i, boolean b}
3983 template aTest tem := { i := 1, u := {i := 1, b := true, c := 2}}
3988 <RESULT IF_PASS COUNT 1>
3989 (?im)error.+?template.+?for.+?union.+?type.+?must.+?contain.+?exactly.+?one.+?selected.+?field
3991 <RESULT IF_PASS COUNT 1>
3992 (?im)error.+?Reference.+?to.+?non-existent.+?field.+?in.+?union.+?template
3994 <RESULT IF_PASS COUNT 2>
4000 .*---------------------------------------------------------------------*
4001 :h2.Missing fields in template
4002 .*---------------------------------------------------------------------*
4004 .*---------------------------------------------------------------------*
4005 :h3.Missing field in template - set
4006 .*---------------------------------------------------------------------*
4009 <TC - Missing field in template - set>
4013 <MODULE TTCN Temp Temp.ttcn>
4017 type set aTest {integer i, bTest r}
4018 type set bTest {integer i , charstring c}
4020 template aTest tem := {i := 1}
4025 <RESULT IF_PASS COUNT 0>
4032 .*---------------------------------------------------------------------*
4033 :h3.Missing field in template - record
4034 .*---------------------------------------------------------------------*
4037 <TC - Missing field in template - record>
4041 <MODULE TTCN Temp Temp.ttcn>
4045 type record aTest {integer i, bTest r}
4046 type record bTest {integer i , charstring c}
4048 template aTest tem := {i:= 1}
4053 <RESULT IF_PASS COUNT 0>
4060 .*---------------------------------------------------------------------*
4061 :h3.Missing field in template - contained set
4062 .*---------------------------------------------------------------------*
4065 <TC - Missing field in template - contained set>
4069 <MODULE TTCN Temp Temp.ttcn>
4073 type set aTest {integer i, bTest r}
4074 type set bTest {integer i , charstring c}
4076 template aTest tem := {i := 1, r := {i := 2}}
4081 <RESULT IF_PASS COUNT 0>
4088 .*---------------------------------------------------------------------*
4089 :h3.Missing field in template - contained record
4090 .*---------------------------------------------------------------------*
4093 <TC - Missing field in template - contained record>
4097 <MODULE TTCN Temp Temp.ttcn>
4101 type record aTest {integer i, bTest r}
4102 type record bTest {integer i , charstring c}
4104 template aTest tem := {i := 1, r := {i := 2}}
4109 <RESULT IF_PASS COUNT 0>
4116 .*---------------------------------------------------------------------*
4117 :h3.Missing field in union template - contained set
4118 .*---------------------------------------------------------------------*
4121 <TC - Missing field in union template - contained set>
4125 <MODULE TTCN Temp Temp.ttcn>
4129 type set aTest {integer i, bTest r}
4130 type set bTest {integer i , charstring c}
4131 type union uTest {aTest a, bTest b}
4133 template uTest tem := { a := {i := 1, r := { i:= 2}}}
4138 <RESULT IF_PASS COUNT 0>
4145 .*---------------------------------------------------------------------*
4146 :h3.Missing field in union template - contained record
4147 .*---------------------------------------------------------------------*
4150 <TC - Missing field in union template - contained record>
4154 <MODULE TTCN Temp Temp.ttcn>
4158 type record aTest {integer i, bTest r}
4159 type record bTest {integer i , charstring c}
4160 type union uTest {aTest a, bTest b}
4162 template uTest tem := { a := {i := 1, r := { i:= 2}}}
4167 <RESULT IF_PASS COUNT 0>
4174 .*---------------------------------------------------------------------*
4175 :h3.Missing field in template - set of
4176 .*---------------------------------------------------------------------*
4179 <TC - Missing field in template - set of>
4183 <MODULE TTCN Temp Temp.ttcn>
4187 type set of integer aTest;
4189 template aTest tem := {1, -, 3}
4194 <RESULT IF_PASS COUNT 0>
4201 .*---------------------------------------------------------------------*
4202 :h3.Missing field in template - record of
4203 .*---------------------------------------------------------------------*
4206 <TC - Missing field in template - record of>
4210 <MODULE TTCN Temp Temp.ttcn>
4214 type record of integer aTest;
4216 template aTest tem := {-, 2, 3}
4221 <RESULT IF_PASS COUNT 0>
4227 .*---------------------------------------------------------------------*
4228 :h2.Missing optional fields in template
4229 .*---------------------------------------------------------------------*
4231 .*---------------------------------------------------------------------*
4232 :h3.Missing optional field in template - set
4233 .*---------------------------------------------------------------------*
4236 <TC - Missing optional field in template - set>
4240 <MODULE TTCN Temp Temp.ttcn>
4244 type set aTest {integer i, charstring c, bTest r optional}
4245 type set bTest {integer i , charstring c}
4247 template aTest tem := { c := "aTest", i := 1}
4252 <RESULT IF_PASS COUNT 0>
4259 .*---------------------------------------------------------------------*
4260 :h3.Missing optional field in template - contained set
4261 .*---------------------------------------------------------------------*
4264 <TC - Missing optional field in template - contained set>
4268 <MODULE TTCN Temp Temp.ttcn>
4272 type set aTest {integer i, bTest r}
4273 type set bTest {integer i , charstring c optional}
4275 template aTest tem := { i := 1, r := {i := 1}}
4280 <RESULT IF_PASS COUNT 0>
4287 .*---------------------------------------------------------------------*
4288 :h3.Missing optional field in template - record
4289 .*---------------------------------------------------------------------*
4292 <TC - Missing optional field in template - record>
4296 <MODULE TTCN Temp Temp.ttcn>
4300 type record aTest {integer i, bTest r optional}
4301 type set bTest {integer i , charstring c}
4303 template aTest tem := { i := 1}
4308 <RESULT IF_PASS COUNT 0>
4315 .*---------------------------------------------------------------------*
4316 :h3.Missing optional field in template - contained record
4317 .*---------------------------------------------------------------------*
4320 <TC - Missing optional field in template - contained record>
4324 <MODULE TTCN Temp Temp.ttcn>
4328 type record aTest {integer i, bTest r}
4329 type record bTest {integer i , charstring c optional}
4331 template aTest tem := { i := 1, r := {i := 2}}
4336 <RESULT IF_PASS COUNT 0>
4343 .*---------------------------------------------------------------------*
4344 :h3.Missing optional field in template inside union - record
4345 .*---------------------------------------------------------------------*
4348 <TC - Missing optional field in template inside union - record>
4352 <MODULE TTCN Temp Temp.ttcn>
4356 type record aTest {integer i, bTest r optional}
4357 type record bTest {integer i , charstring c}
4358 type union cTest {aTest a, bTest b}
4360 template cTest tem := { a := {i := 1}}
4365 <RESULT IF_PASS COUNT 0>
4372 .*---------------------------------------------------------------------*
4373 :h3.Missing optional field in template inside union - contained record
4374 .*---------------------------------------------------------------------*
4377 <TC - Missing optional field in template inside union - contained record>
4381 <MODULE TTCN Temp Temp.ttcn>
4385 type record aTest {integer i, bTest r}
4386 type record bTest {integer i , charstring c optional}
4387 type union cTest {aTest a, bTest b}
4389 template cTest tem := { a := {i := 1, r :={i := 2}}}
4394 <RESULT IF_PASS COUNT 0>
4401 .*---------------------------------------------------------------------*
4402 :h3.Missing optional field in template inside union - set
4403 .*---------------------------------------------------------------------*
4406 <TC - Missing optional field in template inside union - set>
4410 <MODULE TTCN Temp Temp.ttcn>
4414 type set aTest {integer i, bTest r optional}
4415 type set bTest {integer i , charstring c}
4416 type union cTest {aTest a, bTest b}
4418 template cTest tem := { a := {i := 1}}
4423 <RESULT IF_PASS COUNT 0>
4430 .*---------------------------------------------------------------------*
4431 :h3.Missing optional field in template inside union - contained set
4432 .*---------------------------------------------------------------------*
4435 <TC - Missing optional field in template inside union - contained set>
4439 <MODULE TTCN Temp Temp.ttcn>
4443 type set aTest {integer i, bTest r}
4444 type set bTest {integer i , charstring c optional}
4445 type union cTest {aTest a, bTest b}
4447 template cTest tem := { a := {i := 1, r :={i := 2}}}
4452 <RESULT IF_PASS COUNT 0>
4459 .*---------------------------------------------------------------------*
4460 :h3.Missing optional field in template inside record of
4461 .*---------------------------------------------------------------------*
4464 <TC - Missing optional field in template inside record of>
4468 <MODULE TTCN Temp Temp.ttcn>
4472 type record of bTest aTest;
4473 type record bTest {integer i , charstring c optional}
4475 template aTest tem := {{1,"bTest"},{i:=2}}
4480 <RESULT IF_PASS COUNT 0>
4487 .*---------------------------------------------------------------------*
4488 :h3.Missing optional field in template inside set of
4489 .*---------------------------------------------------------------------*
4492 <TC - Missing optional field in template inside set of >
4496 <MODULE TTCN Temp Temp.ttcn>
4500 type set of bTest aTest;
4501 type set bTest {integer i , charstring c optional}
4503 template aTest tem := {{i := 1, c := "bTest"},{i := 2}}
4508 <RESULT IF_PASS COUNT 0>
4514 .*---------------------------------------------------------------------*
4515 :h2.Omitted mandatory field in template
4516 .*---------------------------------------------------------------------*
4518 .*---------------------------------------------------------------------*
4519 :h3.Omitted mandatory field in template - record
4520 .*---------------------------------------------------------------------*
4523 <TC - Omitted mandatory field in template - record>
4527 <MODULE TTCN Temp Temp.ttcn>
4531 type record aTest {integer i, bTest r optional}
4532 type record bTest {integer i , charstring c optional}
4534 template aTest tem := { i := omit, r := {i := 2, c := omit}}
4539 <RESULT IF_PASS COUNT 1>
4540 (?im)error.+?omit.+?not.+?allowed.+?context
4542 <RESULT IF_PASS COUNT 1>
4549 .*---------------------------------------------------------------------*
4550 :h3.Omitted mandatory field in template - set
4551 .*---------------------------------------------------------------------*
4554 <TC - Omitted mandatory field in template - set>
4558 <MODULE TTCN Temp Temp.ttcn>
4562 type set aTest {integer i, bTest r optional}
4563 type set bTest {integer i , charstring c optional}
4565 template aTest tem := { i := omit, r := {i := 2, c := "bTest"}}
4570 <RESULT IF_PASS COUNT 1>
4571 (?im)error.+?omit.+?not.+?allowed.+?context
4573 <RESULT IF_PASS COUNT 1>
4580 .*---------------------------------------------------------------------*
4581 :h3.Omitted mandatory field in template - contained record
4582 .*---------------------------------------------------------------------*
4585 <TC - Omitted mandatory field in template - contained record>
4589 <MODULE TTCN Temp Temp.ttcn>
4593 type set aTest {integer i, bTest r}
4594 type record bTest {integer i , charstring c optional}
4596 template aTest tem := {i := 1, r := {i := omit, c := omit}}
4601 <RESULT IF_PASS COUNT 1>
4602 (?im)error.+?omit.+?not.+?allowed.+?context
4604 <RESULT IF_PASS COUNT 1>
4611 .*---------------------------------------------------------------------*
4612 :h3.Omitted mandatory field in template - contained set
4613 .*---------------------------------------------------------------------*
4616 <TC - Omitted mandatory field in template - contained set>
4620 <MODULE TTCN Temp Temp.ttcn>
4624 type record aTest {integer i, bTest r}
4625 type set bTest {integer i , charstring c optional}
4627 template aTest tem := { i := 1, r := {i := omit, c := omit}}
4632 <RESULT IF_PASS COUNT 1>
4633 (?im)error.+?omit.+?not.+?allowed.+?context
4635 <RESULT IF_PASS COUNT 1>
4642 .*---------------------------------------------------------------------*
4643 :h3.Omitted mandatory field in record of template
4644 .*---------------------------------------------------------------------*
4647 <TC - Omitted mandatory field in record of template >
4651 <MODULE TTCN Temp Temp.ttcn>
4655 type record of bTest aTest;
4656 type record bTest {integer i , charstring c optional}
4658 template aTest tem := { {1, omit}, {omit, "bTest"}}
4663 <RESULT IF_PASS COUNT 1>
4664 (?im)error.+?omit.+?not.+?allowed.+?context
4666 <RESULT IF_PASS COUNT 1>
4673 .*---------------------------------------------------------------------*
4674 :h3.Omitted mandatory field in set of template
4675 .*---------------------------------------------------------------------*
4678 <TC - Omitted mandatory field in set of template>
4682 <MODULE TTCN Temp Temp.ttcn>
4686 type set of bTest aTest;
4687 type record bTest {integer i , charstring c optional}
4689 template aTest tem := { {i := 1, c := omit}, {i := omit, c := "bTest"}}
4693 <RESULT IF_PASS COUNT 1>
4694 (?im)error.+?omit.+?not.+?allowed.+?context
4696 <RESULT IF_PASS COUNT 1>
4703 .*---------------------------------------------------------------------*
4704 :h3.Omitted mandatory field in union template
4705 .*---------------------------------------------------------------------*
4708 <TC - Omitted mandatory field in union template>
4712 <MODULE TTCN Temp Temp.ttcn>
4716 type union cTest {integer i, boolean b}
4718 template cTest tem := {i := omit}
4722 <RESULT IF_PASS COUNT 1>
4723 (?im)error.+?omit.+?value.+?not.+?allowed
4725 <RESULT IF_PASS COUNT 1>
4732 .*---------------------------------------------------------------------*
4733 :h3.Omitted mandatory field in union template - record
4734 .*---------------------------------------------------------------------*
4737 <TC - Omitted mandatory field in union template - record>
4741 <MODULE TTCN Temp Temp.ttcn>
4745 type record aTest {integer i, bTest r}
4746 type record bTest {integer i , charstring c optional}
4747 type union cTest {aTest a, bTest b}
4749 template cTest tem := {a := { i := omit, r := {2, "bTest"}}}
4754 <RESULT IF_PASS COUNT 1>
4755 (?im)error.+?omit.+?not.+?allowed.+?context
4757 <RESULT IF_PASS COUNT 1>
4764 .*---------------------------------------------------------------------*
4765 :h3.Omitted mandatory field in union template - set
4766 .*---------------------------------------------------------------------*
4769 <TC - Omitted mandatory field in union template - set>
4773 <MODULE TTCN Temp Temp.ttcn>
4777 type set aTest {integer i, bTest r}
4778 type record bTest {integer i , charstring c optional}
4779 type union cTest {aTest a, bTest b}
4781 template cTest tem := {a := { i := omit, r := {2, "bTest"}}}
4786 <RESULT IF_PASS COUNT 1>
4787 (?im)error.+?omit.+?not.+?allowed.+?context
4789 <RESULT IF_PASS COUNT 1>
4796 .*---------------------------------------------------------------------*
4797 :h3.Omitted mandatory field in union template - contained record
4798 .*---------------------------------------------------------------------*
4801 <TC - Omitted mandatory field in union template - contained record>
4805 <MODULE TTCN Temp Temp.ttcn>
4809 type set aTest {integer i, bTest r}
4810 type record bTest {integer i , charstring c optional}
4811 type union cTest {aTest a, bTest b}
4813 template cTest tem := {a := { i := 1, r := {omit, "bTest"}}}
4818 <RESULT IF_PASS COUNT 1>
4819 (?im)error.+?omit.+?not.+?allowed.+?context
4821 <RESULT IF_PASS COUNT 1>
4828 .*---------------------------------------------------------------------*
4829 :h3.Omitted mandatory field in union template - contained set
4830 .*---------------------------------------------------------------------*
4833 <TC - Omitted mandatory field in union template - contained set>
4837 <MODULE TTCN Temp Temp.ttcn>
4841 type record aTest {integer i, bTest r}
4842 type set bTest {integer i , charstring c optional}
4843 type union cTest {aTest a, bTest b}
4845 template cTest tem := {a := { i := 1, r := { i := omit, c := omit}}}
4850 <RESULT IF_PASS COUNT 1>
4851 (?im)error.+?omit.+?not.+?allowed.+?context
4853 <RESULT IF_PASS COUNT 1>
4860 .*---------------------------------------------------------------------*
4861 :h3.Omitted mandatory field in modified union template
4862 .*---------------------------------------------------------------------*
4865 <TC - Omitted mandatory field in modified union template>
4869 <MODULE TTCN Temp Temp.ttcn>
4873 type record aTest {integer i, bTest r optional}
4874 type record bTest {integer i , charstring c optional}
4876 template aTest tem := { i := 1, r := {i := 2, c := omit}}
4877 template aTest tem1 modifies tem := { r := { i := omit, c := "bTest"}}
4882 <RESULT IF_PASS COUNT 1>
4883 (?im)error.+?omit.+?not.+?allowed.+?context
4885 <RESULT IF_PASS COUNT 1>
4892 .*---------------------------------------------------------------------*
4893 :h2.Order mismatch in record template
4894 .*---------------------------------------------------------------------*
4896 .*---------------------------------------------------------------------*
4897 :h3.Order mismatch in a record template - record
4898 .*---------------------------------------------------------------------*
4901 <TC - Order mismatch in a record template - record>
4905 <MODULE TTCN Temp Temp.ttcn>
4909 type record aTest {integer i, bTest r}
4910 type record bTest {integer i , charstring c optional}
4912 template aTest tem := {r := {i := 2, c := omit}, i := 1 }
4917 <RESULT IF_PASS COUNT 1>
4918 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?template.+?record.+?type
4920 <RESULT IF_PASS COUNT 1>
4927 .*---------------------------------------------------------------------*
4928 :h3.Order mismatch in a record template - contained record
4929 .*---------------------------------------------------------------------*
4932 <TC - Order mismatch in a record template - contained record>
4936 <MODULE TTCN Temp Temp.ttcn>
4940 type record aTest {integer i, bTest r}
4941 type record bTest {integer i , charstring c optional}
4943 template aTest tem := { i := 1, r := {c := omit, i := 2}}
4948 <RESULT IF_PASS COUNT 1>
4949 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?template.+?record.+?type
4951 <RESULT IF_PASS COUNT 1>
4958 .*---------------------------------------------------------------------*
4959 :h3.Order mismatch in a record template - record in union
4960 .*---------------------------------------------------------------------*
4963 <TC - Order mismatch in a record template - record in union>
4967 <MODULE TTCN Temp Temp.ttcn>
4971 type record aTest {integer i, charstring c, bTest r optional}
4972 type record bTest {integer i , charstring c optional}
4973 type union cTest {aTest a, bTest b}
4975 template cTest tem := {a := {r := {i := 2, c := omit}, i := 1}}
4980 <RESULT IF_PASS COUNT 1>
4981 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?template.+?record.+?type
4983 <RESULT IF_PASS COUNT 1>
4990 .*---------------------------------------------------------------------*
4991 :h3.Order mismatch in a record template - contained record in union
4992 .*---------------------------------------------------------------------*
4995 <TC - Order mismatch in a record template - contained record in union>
4999 <MODULE TTCN Temp Temp.ttcn>
5003 type record aTest {integer i, bTest r }
5004 type record bTest {integer i , charstring c optional}
5005 type union cTest {aTest a, bTest b}
5007 template cTest tem := {a := { i := omit, r := {c := omit, i := 2}}}
5012 <RESULT IF_PASS COUNT 1>
5013 (?im)error.+?omit.+?not.+?allowed.+?context
5015 <RESULT IF_PASS COUNT 1>
5016 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?template.+?record.+?type
5018 <<RESULT IF_PASS COUNT 2>
5024 .*---------------------------------------------------------------------*
5025 :h2.non-existent or duplicate field in template
5026 .*---------------------------------------------------------------------*
5028 .*---------------------------------------------------------------------*
5029 :h3.Duplicate field in template - record
5030 .*---------------------------------------------------------------------*
5033 <TC - Duplicate field in template - record>
5037 <MODULE TTCN Temp Temp.ttcn>
5041 type record aTest {integer i, bTest r}
5042 type record bTest {integer i , charstring c optional}
5044 template aTest tem := {i := 1, r := {i := 2, c := omit}, i := 3}
5049 <RESULT IF_PASS COUNT 1>
5050 (?im)error.+?Duplicate.+?record.+?field
5052 <RESULT IF_PASS COUNT 1>
5053 (?im)note.+?Field.+?is.+?already.+?given.+?here
5055 <<RESULT IF_PASS COUNT 1>
5062 .*---------------------------------------------------------------------*
5063 :h3.Duplicate field in template - set
5064 .*---------------------------------------------------------------------*
5067 <TC - Duplicate field in template - set>
5071 <MODULE TTCN Temp Temp.ttcn>
5075 type set aTest {integer i, bTest r}
5076 type set bTest {integer i , charstring c optional}
5078 template aTest tem := {i := 1, r := {i := 2, c := omit}, i := 3}
5082 <RESULT IF_PASS COUNT 1>
5083 (?im)error.+?Duplicate.+?set.+?field
5085 <RESULT IF_PASS COUNT 1>
5086 (?im)note.+?Field.+?is.+?already.+?given.+?here
5088 <<RESULT IF_PASS COUNT 1>
5095 .*---------------------------------------------------------------------*
5096 :h3.Duplicate field in template - contained record
5097 .*---------------------------------------------------------------------*
5100 <TC - Duplicate field in template - contained record>
5104 <MODULE TTCN Temp Temp.ttcn>
5108 type set aTest {integer i, bTest r}
5109 type record bTest {integer i , charstring c optional}
5111 template aTest tem := {i := 1, r := {i := 2, c := omit, i := 3}}
5115 <RESULT IF_PASS COUNT 1>
5116 (?im)error.+?Duplicate.+?record.+?field
5118 <RESULT IF_PASS COUNT 1>
5119 (?im)note.+?Field.+?is.+?already.+?given.+?here
5121 <<RESULT IF_PASS COUNT 1>
5128 .*---------------------------------------------------------------------*
5129 :h3.Duplicate field in template - contained set
5130 .*---------------------------------------------------------------------*
5133 <TC - Duplicate field in template - contained set>
5137 <MODULE TTCN Temp Temp.ttcn>
5141 type record aTest {integer i, bTest r}
5142 type set bTest {integer i , charstring c optional}
5144 template aTest tem := {i := 1, r := {c := omit, i := 2, i := 3}}
5148 <RESULT IF_PASS COUNT 1>
5149 (?im)error.+?Duplicate.+?set.+?field
5151 <RESULT IF_PASS COUNT 1>
5152 (?im)note.+?Field.+?is.+?already.+?given.+?here
5154 <<RESULT IF_PASS COUNT 1>
5161 .*---------------------------------------------------------------------*
5162 :h3.non-existent field in template - record
5163 .*---------------------------------------------------------------------*
5166 <TC - non-existent field in template - record>
5170 <MODULE TTCN Temp Temp.ttcn>
5174 type record aTest {integer i, bTest r}
5175 type record bTest {integer i , charstring c optional}
5177 template aTest tem := {i := 1, r := {i := 2, c := omit}, n := 3}
5182 <RESULT IF_PASS COUNT 1>
5183 (?im)error.+?Reference.+?to.+?non-existent.+?field.+?in.+?record.+?template
5185 <<RESULT IF_PASS COUNT 1>
5192 .*---------------------------------------------------------------------*
5193 :h3.non-existent field in template - set
5194 .*---------------------------------------------------------------------*
5197 <TC - non-existent field in template - set>
5201 <MODULE TTCN Temp Temp.ttcn>
5205 type set aTest {integer i, bTest r}
5206 type set bTest {integer i , charstring c optional}
5208 template aTest tem := {i := 1, r := {i := 2, c := omit}, n := 3}
5212 <RESULT IF_PASS COUNT 1>
5213 (?im)error.+?Reference.+?to.+?non-existent.+?field.+?in.+?template.+?for.+?set.+?type
5215 <<RESULT IF_PASS COUNT 1>
5222 .*---------------------------------------------------------------------*
5223 :h3.non-existent field in template - contained record
5224 .*---------------------------------------------------------------------*
5227 <TC - non-existent field in template - contained record>
5231 <MODULE TTCN Temp Temp.ttcn>
5235 type set aTest {integer i, bTest r}
5236 type record bTest {integer i , charstring c optional}
5238 template aTest tem := {i := 1, r := {i := 2, c := omit, n := 3}}
5242 <RESULT IF_PASS COUNT 1>
5243 (?im)error.+?Reference.+?to.+?non-existent.+?field.+?in.+?record.+?template
5245 <<RESULT IF_PASS COUNT 1>
5252 .*---------------------------------------------------------------------*
5253 :h3.non-existent field in template - contained set
5254 .*---------------------------------------------------------------------*
5257 <TC - non-existent field in template - contained set>
5261 <MODULE TTCN Temp Temp.ttcn>
5265 type record aTest {integer i, bTest r}
5266 type set bTest {integer i , charstring c optional}
5268 template aTest tem := {i := 1, r := {c := omit, i := 2, n := 3}}
5272 <RESULT IF_PASS COUNT 1>
5273 (?im)error.+?Reference.+?to.+?non-existent.+?field.+?in.+?template.+?for.+?set.+?type
5275 <<RESULT IF_PASS COUNT 1>
5282 .*---------------------------------------------------------------------*
5283 :h3.Duplicate field in modified template - set
5284 .*---------------------------------------------------------------------*
5287 <TC - Duplicate field in modified template - set>
5291 <MODULE TTCN Temp Temp.ttcn>
5295 type set aTest {integer i, charstring c}
5297 template aTest tem := { i := 1, c := "aTest"}
5298 template aTest tem1 modifies tem := { i := 1, i := 2}
5303 <RESULT IF_PASS COUNT 1>
5304 (?im)error.+?Duplicate.+?set.+?field
5306 <RESULT IF_PASS COUNT 1>
5307 (?im)note.+?Field.+?is.+?already.+?given.+?here
5309 <<RESULT IF_PASS COUNT 1>
5316 .*---------------------------------------------------------------------*
5317 :h3.Duplicate field in modified template - record
5318 .*---------------------------------------------------------------------*
5321 <TC - Duplicate field in modified template - record>
5325 <MODULE TTCN Temp Temp.ttcn>
5329 type record aTest {integer i, charstring c}
5331 template aTest tem := { i := 1, c := "aTest"}
5332 template aTest tem1 modifies tem := { i := 1, i := 2}
5337 <RESULT IF_PASS COUNT 1>
5338 (?im)error.+?Duplicate.+?record.+?field
5340 <RESULT IF_PASS COUNT 1>
5341 (?im)note.+?Field.+?is.+?already.+?given.+?here
5343 <<RESULT IF_PASS COUNT 1>
5350 .*---------------------------------------------------------------------*
5351 :h3.Duplicate field in modified template - contained set
5352 .*---------------------------------------------------------------------*
5355 <TC - Duplicate field in modified template - contained set>
5359 <MODULE TTCN Temp Temp.ttcn>
5363 type set aTest {integer i, bTest r}
5364 type set bTest {integer i , charstring c optional}
5366 template aTest tem := { i := 1, r := {i := 2, c := omit}}
5367 template aTest tem1 modifies tem := { r := { i := 2, c := omit, i := 3}}
5372 <RESULT IF_PASS COUNT 1>
5373 (?im)error.+?Duplicate.+?set.+?field
5375 <RESULT IF_PASS COUNT 1>
5376 (?im)note.+?Field.+?is.+?already.+?given.+?here
5378 <<RESULT IF_PASS COUNT 1>
5385 .*---------------------------------------------------------------------*
5386 :h3.Duplicate field in modified template - contained record
5387 .*---------------------------------------------------------------------*
5390 <TC - Duplicate field in modified template - contained record>
5394 <MODULE TTCN Temp Temp.ttcn>
5398 type set aTest {integer i, bTest r}
5399 type record bTest {integer i , charstring c optional}
5401 template aTest tem := { i := 1, r := {i := 2, c := omit}}
5402 template aTest tem1 modifies tem := { r := { i := 2, c := omit, i := 3}}
5407 <RESULT IF_PASS COUNT 1>
5408 (?im)error.+?Duplicate.+?record.+?field
5410 <RESULT IF_PASS COUNT 1>
5411 (?im)note.+?Field.+?is.+?already.+?given.+?here
5413 <<RESULT IF_PASS COUNT 1>
5420 .*---------------------------------------------------------------------*
5421 :h3.non-existent field in modified template - set
5422 .*---------------------------------------------------------------------*
5425 <TC - non-existent field in modified template - set>
5429 <MODULE TTCN Temp Temp.ttcn>
5433 type set aTest {integer i, charstring c}
5435 template aTest tem := { i := 1, c := "aTest"}
5436 template aTest tem1 modifies tem := { n := omit }
5441 <RESULT IF_PASS COUNT 1>
5442 (?im)error.+?Reference.+?to.+?non-existent.+?field.+?in.+?template.+?for.+?set.+?type
5444 <<RESULT IF_PASS COUNT 1>
5451 .*---------------------------------------------------------------------*
5452 :h3.non-existent field in modified template - record
5453 .*---------------------------------------------------------------------*
5456 <TC - non-existent field in modified template - record>
5460 <MODULE TTCN Temp Temp.ttcn>
5464 type record aTest {integer i, charstring c}
5466 template aTest tem := { i := 1, c := "aTest"}
5467 template aTest tem1 modifies tem := { i := 1, n := 2}
5472 <RESULT IF_PASS COUNT 1>
5473 (?im)error.+?Reference.+?to.+?non-existent.+?field.+?in.+?record.+?template
5475 <<RESULT IF_PASS COUNT 1>
5482 .*---------------------------------------------------------------------*
5483 :h3.non-existent field in modified template - contained set
5484 .*---------------------------------------------------------------------*
5487 <TC - non-existent field in modified template - contained set>
5491 <MODULE TTCN Temp Temp.ttcn>
5495 type set aTest {integer i, bTest r}
5496 type set bTest {integer i , charstring c optional}
5498 template aTest tem := { i := 1, r := {i := 2, c := omit}}
5499 template aTest tem1 modifies tem := { r := { i := 2, c := omit, n := omit }}
5504 <RESULT IF_PASS COUNT 1>
5505 (?im)error.+?Reference.+?to.+?non-existent.+?field.+?in.+?template.+?for.+?set.+?type
5507 <<RESULT IF_PASS COUNT 1>
5514 .*---------------------------------------------------------------------*
5515 :h3.non-existent field in modified template - contained record
5516 .*---------------------------------------------------------------------*
5519 <TC - non-existent field in modified template - contained record>
5523 <MODULE TTCN Temp Temp.ttcn>
5527 type set aTest {integer i, bTest r}
5528 type record bTest {integer i , charstring c optional}
5530 template aTest tem := { i := 1, r := {i := 2, c := omit}}
5531 template aTest tem1 modifies tem := { r := { i := 2, c := omit, n := 3}}
5536 <RESULT IF_PASS COUNT 1>
5537 (?im)error.+?Reference.+?to.+?non-existent.+?field.+?in.+?record.+?template
5539 <<RESULT IF_PASS COUNT 1>
5546 .*---------------------------------------------------------------------*
5547 :h3.Duplicate field in union template - contained record
5548 .*---------------------------------------------------------------------*
5551 <TC - Duplicate field in union template - contained record>
5555 <MODULE TTCN Temp Temp.ttcn>
5559 type record aTest {integer i, bTest r}
5560 type record bTest {integer i , charstring c optional}
5561 type union cTest {aTest a, bTest b}
5563 template cTest tem := {a := { i := 1, r := {i := 2, c := omit, c := "bTest"}}}
5568 <RESULT IF_PASS COUNT 1>
5569 (?im)error.+?Duplicate.+?record.+?field
5571 <RESULT IF_PASS COUNT 1>
5572 (?im)note.+?Field.+?is.+?already.+?given.+?here
5574 <<RESULT IF_PASS COUNT 1>
5581 .*---------------------------------------------------------------------*
5582 :h3.Duplicate field in union template - contained set
5583 .*---------------------------------------------------------------------*
5586 <TC - Duplicate field in union template - contained set>
5590 <MODULE TTCN Temp Temp.ttcn>
5594 type record aTest {integer i, bTest r}
5595 type set bTest {integer i , charstring c optional}
5596 type union cTest {aTest a, bTest b}
5598 template cTest tem := {a := { i := 1, r := {i := 2, c := omit, c := "bTest"}}}
5603 <RESULT IF_PASS COUNT 1>
5604 (?im)error.+?Duplicate.+?set.+?field
5606 <RESULT IF_PASS COUNT 1>
5607 (?im)note.+?Field.+?is.+?already.+?given.+?here
5609 <<RESULT IF_PASS COUNT 1>
5616 .*---------------------------------------------------------------------*
5617 :h3.non-existent field in union template - contained record
5618 .*---------------------------------------------------------------------*
5621 <TC - non-existent field in union template - contained record>
5625 <MODULE TTCN Temp Temp.ttcn>
5629 type record aTest {integer i, bTest r}
5630 type record bTest {integer i , charstring c optional}
5631 type union cTest {aTest a, bTest b}
5633 template cTest tem := {a := { i := 1, r := {i := 2, c := omit, n := 3}}}
5638 <RESULT IF_PASS COUNT 1>
5639 (?im)error.+?Reference.+?to.+?non-existent.+?field.+?in.+?record.+?template
5641 <<RESULT IF_PASS COUNT 1>
5648 .*---------------------------------------------------------------------*
5649 :h3.non-existent field in union template - contained set
5650 .*---------------------------------------------------------------------*
5653 <TC - non-existent field in union template - contained set>
5657 <MODULE TTCN Temp Temp.ttcn>
5661 type record aTest {integer i, bTest r}
5662 type set bTest {integer i , charstring c optional}
5663 type union cTest {aTest a, bTest b}
5665 template cTest tem := {a := { i := 1, r := {i := 2, c := omit, n := 3}}}
5669 <RESULT IF_PASS COUNT 1>
5670 (?im)error.+?Reference.+?to.+?non-existent.+?field.+?in.+?template.+?set
5672 <<RESULT IF_PASS COUNT 1>
5678 .*---------------------------------------------------------------------*
5680 .*---------------------------------------------------------------------*
5682 .*---------------------------------------------------------------------*
5683 :h3.More than one field in union template - two insted of one
5684 .*---------------------------------------------------------------------*
5687 <TC - More than one field in union template - two insted of one>
5691 <MODULE TTCN Temp Temp.ttcn>
5695 type union uTest {integer i, boolean b, charstring c}
5697 template uTest u := {i := 1, b := true}
5701 <RESULT IF_PASS COUNT 1>
5702 (?im)error.+?template.+?for.+?union.+?type.+?must.+?contain.+?exactly.+?one.+?selected.+?field
5704 <<RESULT IF_PASS COUNT 1>
5711 .*---------------------------------------------------------------------*
5712 :h3.More than one field in union template - three insted of one
5713 .*---------------------------------------------------------------------*
5716 <TC - More than one field in union template - three insted of one>
5720 <MODULE TTCN Temp Temp.ttcn>
5724 type union uTest {integer i, boolean b, charstring c}
5726 template uTest u := {i := 1, b := true, c := "c"}
5730 <RESULT IF_PASS COUNT 1>
5731 (?im)error.+?template.+?for.+?union.+?type.+?must.+?contain.+?exactly.+?one.+?selected.+?field
5733 <<RESULT IF_PASS COUNT 1>
5739 .*---------------------------------------------------------------------*
5740 :h2.Template for recursive types
5741 .*---------------------------------------------------------------------*
5743 .*---------------------------------------------------------------------*
5744 :h3.Template for recursive types - valueof()
5745 .*---------------------------------------------------------------------*
5748 <TC - Template for recursive types - valueof()>
5751 <MODULE TTCN Temp Temp.ttcn>
5753 // TR 701: Segfault when there is a circular reference, where valueof() is involved
5755 type record aTest {integer i, bTest r}
5756 type set bTest {integer i , charstring c}
5758 template aTest tem := tem1;
5760 template aTest tem1 := valueof(tem);
5765 <RESULT IF_PASS COUNT 1>
5766 (?im)error.+?Circular.+?reference
5768 <<RESULT IF_PASS COUNT 1>
5775 .*---------------------------------------------------------------------*
5776 :h3.Template for recursive types - contained record
5777 .*---------------------------------------------------------------------*
5780 <TC - Template for recursive types - contained record>
5784 <MODULE TTCN Temp Temp.ttcn>
5787 // TR 690: segmentation fault
5788 type record aTest {integer i, uTest u}
5789 type union uTest {aTest a, integer i}
5791 template uTest tem1 := {a := {1,tem.u}}
5792 template uTest tem := tem1;
5797 <RESULT IF_PASS COUNT 1>
5798 (?im)error.+?Reference.+?to.+?non-existent.+?field
5800 <<RESULT IF_PASS COUNT 1>
5807 .*---------------------------------------------------------------------*
5808 :h3.Template for recursive types - sizeof() on record of
5809 .*---------------------------------------------------------------------*
5812 <TC - Template for recursive types - sizeof() on record of>
5816 <MODULE TTCN Temp Temp.ttcn>
5820 type record of integer rtype;
5822 template rtype r := {1, 2, sizeof(r)}
5826 <RESULT IF_PASS NEGATIVE>
5833 .*---------------------------------------------------------------------*
5834 :h3.Template for recursive types - sizeof() on set of
5835 .*---------------------------------------------------------------------*
5838 <TC - Template for recursive types - sizeof() on set of>
5842 <MODULE TTCN Temp Temp.ttcn>
5846 type set of integer rtype;
5848 template rtype r := {1, 2, sizeof(r)}
5853 <RESULT IF_PASS NEGATIVE>
5860 .*---------------------------------------------------------------------*
5861 :h2.Value list notation in set template
5862 .*---------------------------------------------------------------------*
5864 .*---------------------------------------------------------------------*
5865 :h3.Value list notation in set
5866 .*---------------------------------------------------------------------*
5869 <TC - Value list notation in set >
5873 <MODULE TTCN Temp Temp.ttcn>
5877 type set aTest {integer i, bTest r}
5878 type record bTest {integer i, charstring c optional}
5880 template aTest tem := {1, {2, omit}}
5885 <RESULT IF_PASS COUNT 1>
5886 (?im)error.+?Value.+?list.+?notation.+?not.+?allowed.+?for.+?set.+?type
5888 <<RESULT IF_PASS COUNT 1>
5895 .*---------------------------------------------------------------------*
5896 :h3.Value list notation in contained set
5897 .*---------------------------------------------------------------------*
5900 <TC - Value list notation in contained set>
5904 <MODULE TTCN Temp Temp.ttcn>
5908 type record aTest {integer i, bTest r}
5909 type set bTest {integer i, charstring c optional}
5911 template aTest tem := {1, {2, omit}}
5916 <RESULT IF_PASS COUNT 1>
5917 (?im)error.+?Value.+?list.+?notation.+?not.+?allowed.+?for.+?set.+?type
5919 <<RESULT IF_PASS COUNT 1>
5926 .*---------------------------------------------------------------------*
5927 :h3.Value list notation in set inside union
5928 .*---------------------------------------------------------------------*
5931 <TC - Value list notation in set inside union>
5935 <MODULE TTCN Temp Temp.ttcn>
5939 type set aTest {integer i, bTest r}
5940 type record bTest {integer i , charstring c optional}
5941 type union cTest {aTest a, bTest b}
5943 template cTest tem := {a := {1, {2, "bTest"}}}
5948 <RESULT IF_PASS COUNT 1>
5949 (?im)error.+?Value.+?list.+?notation.+?not.+?allowed.+?for.+?set.+?type
5951 <<RESULT IF_PASS COUNT 1>
5958 .*---------------------------------------------------------------------*
5959 :h3.Value list notation in contained set inside union
5960 .*---------------------------------------------------------------------*
5963 <TC - Value list notation in contained set inside union>
5967 <MODULE TTCN Temp Temp.ttcn>
5971 type record aTest {integer i, bTest r}
5972 type set bTest {integer i , charstring c optional}
5973 type union cTest {aTest a, bTest b}
5975 template cTest tem := {a := {1, {2, "bTest"}}}
5980 <RESULT IF_PASS COUNT 1>
5981 (?im)error.+?Value.+?list.+?notation.+?not.+?allowed.+?for.+?set.+?type
5983 <<RESULT IF_PASS COUNT 1>
5990 .*---------------------------------------------------------------------*
5991 :h2.recursive derivation in a modified template
5992 .*---------------------------------------------------------------------*
5994 .*---------------------------------------------------------------------*
5995 :h3.Recursive derivation in a modified template1
5996 .*---------------------------------------------------------------------*
5999 <TC - Recursive derivation in a modified template1>
6003 <MODULE TTCN Temp Temp.ttcn>
6007 type record aTest {integer i, charstring c}
6009 template aTest tem modifies tem1 := {i := 2}
6010 template aTest tem1 modifies tem := {i := 1}
6015 <RESULT IF_PASS COUNT 1>
6016 (?im)error.+?Circular.+?reference
6018 <<RESULT IF_PASS COUNT 1>
6025 .*---------------------------------------------------------------------*
6026 :h3.Recursive derivation in a modified template2
6027 .*---------------------------------------------------------------------*
6030 <TC - Recursive derivation in a modified template2>
6034 <MODULE TTCN Temp Temp.ttcn>
6038 type record aTest {integer i, charstring c}
6039 template aTest tem modifies tem1 := {i := tem.i}
6044 <RESULT IF_PASS COUNT 1>
6045 (?im)error.+?There.+?is.+?no.+?local.+?or.+?imported.+?definition
6047 <RESULT IF_PASS COUNT 1>
6048 (?im)error.+?Circular.+?reference
6050 <<RESULT IF_PASS COUNT 2>
6056 .*---------------------------------------------------------------------*
6057 :h2.Wrong order of fields in modified template
6058 .*---------------------------------------------------------------------*
6060 .*---------------------------------------------------------------------*
6061 :h3.Wrong order of fields in modified template - in record
6062 .*---------------------------------------------------------------------*
6065 <TC - Wrong order of fields in modified template - in record>
6069 <MODULE TTCN Temp Temp.ttcn>
6073 type record aTest {integer i , charstring c optional}
6075 template aTest tem := { i := 1, c := omit}
6076 template aTest tem1 modifies tem := {c := omit, i := 3}
6081 <RESULT IF_PASS COUNT 1>
6082 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?template.+?for.+?record.+?type
6084 <<RESULT IF_PASS COUNT 1>
6091 .*---------------------------------------------------------------------*
6092 :h3.Wrong order of fields in modified template - in contained record
6093 .*---------------------------------------------------------------------*
6096 <TC - Wrong order of fields in modified template - in contained record>
6100 <MODULE TTCN Temp Temp.ttcn>
6104 type record aTest {integer i, bTest r}
6105 type record bTest {integer i , charstring c optional}
6107 template aTest tem := { i := 1, r := {i := 2, c := omit}}
6108 template aTest tem1 modifies tem := {i := 3, r := {c := omit,i := 3}}
6113 <RESULT IF_PASS COUNT 1>
6114 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?template.+?for.+?record.+?type
6116 <<RESULT IF_PASS COUNT 1>
6123 .*---------------------------------------------------------------------*
6124 :h3.Wrong order of fields in modified union template - in record
6125 .*---------------------------------------------------------------------*
6128 <TC - Wrong order of fields in modified union template - in record>
6132 <MODULE TTCN Temp Temp.ttcn>
6136 type record aTest {integer i , charstring c optional}
6138 type union cTest {aTest a, integer i}
6140 template cTest tem := {a := { i := 1, c := "aTest"}}
6141 template cTest tem1 modifies tem := {a := {c := omit, i := 2}}
6146 <RESULT IF_PASS COUNT 1>
6147 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?template.+?for.+?record.+?type
6149 <<RESULT IF_PASS COUNT 1>
6156 .*---------------------------------------------------------------------*
6157 :h3.Wrong order of fields in modified union template - in contained record
6158 .*---------------------------------------------------------------------*
6161 <TC - Wrong order of fields in modified union template - in contained record>
6165 <MODULE TTCN Temp Temp.ttcn>
6169 type record aTest {integer i, bTest r}
6170 type record bTest {integer i , charstring c optional}
6171 type union cTest {aTest a, bTest b}
6173 template cTest tem := {a := { i := 1, r := {i := 2, c := omit}}}
6174 template cTest tem1 modifies tem := {a := { i := 1, r := {c := omit, i := 3}}}
6179 <RESULT IF_PASS COUNT 1>
6180 (?im)error.+?Field.+?cannot.+?appear.+?after.+?field.+?in.+?template.+?for.+?record.+?type
6182 <<RESULT IF_PASS COUNT 1>
6188 .*---------------------------------------------------------------------*
6189 :h2.Modified template cannot refer to itself
6190 .*---------------------------------------------------------------------*
6192 .*---------------------------------------------------------------------*
6193 :h3.Modified template refers to itself
6194 .*---------------------------------------------------------------------*
6197 <TC - Modified template refers to itself >
6201 <MODULE TTCN Temp Temp.ttcn>
6205 type record aTest {integer i, charstring c}
6207 template aTest tem1 modifies tem1 := {i := 2}
6212 <RESULT IF_PASS COUNT 1>
6213 (?im)error.+?Circular.+?reference
6215 <<RESULT IF_PASS COUNT 1>
6222 .*---------------------------------------------------------------------*
6223 :h3.Modified template refers to itself - record field
6224 .*---------------------------------------------------------------------*
6227 <TC - Modified template refers to itself - record field>
6231 <MODULE TTCN Temp Temp.ttcn>
6235 type record aTest {integer i, charstring c}
6237 template aTest tem1 modifies tem := {i := tem1.i}
6242 <RESULT IF_PASS COUNT 1>
6243 (?im)error.+?There.+?is.+?no.+?local.+?or.+?imported.+?definition
6245 <RESULT IF_PASS COUNT 1>
6246 (?im)error.+?Circular.+?reference
6248 <<RESULT IF_PASS COUNT 2>
6255 .*---------------------------------------------------------------------*
6256 :h3.Modified template refers to itself - record of field
6257 .*---------------------------------------------------------------------*
6260 <TC - Modified template refers to itself - record of field>
6264 <MODULE TTCN Temp Temp.ttcn>
6268 type record of integer aTest;
6270 template aTest tem1 modifies tem := {i := tem1[i]}
6275 <RESULT IF_PASS COUNT 1>
6276 (?im)error.+?There.+?is.+?no.+?local.+?or.+?imported.+?definition
6278 <RESULT IF_PASS COUNT 1>
6279 (?im)error.+?assignment.+?notation.+?cannot.+?used.+?for.+?record.+?of.+?type
6281 <<RESULT IF_PASS COUNT 2>
6287 .*---------------------------------------------------------------------*
6288 :h2.First argument of match is not a value
6289 .*---------------------------------------------------------------------*
6291 .*---------------------------------------------------------------------*
6292 :h2.Second argument of match is not a template
6293 .*---------------------------------------------------------------------*
6295 .*---------------------------------------------------------------------*
6296 :h2.Argument of valueof is not a template
6297 .*---------------------------------------------------------------------*
6299 .*---------------------------------------------------------------------*
6300 :h3.Argument of valueof is not a template - constant
6301 .*---------------------------------------------------------------------*
6304 <TC - Argument of valueof is not a template - constant>
6308 <MODULE TTCN Temp Temp.ttcn>
6312 type record aTest {integer i, charstring c}
6314 const aTest con := { i := 1, c := "aTest"}
6315 const aTest con1 := valueof(con);
6320 <RESULT IF_PASS NEGATIVE>