Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MTS - Methods for Testing and Specification
TTCN-3_Compiler_Tests
TTCN3_PART1
Commits
b0edaa1f
Commit
b0edaa1f
authored
Jun 27, 2018
by
urbant
Browse files
Correction in names of select-union test cases (wrong chapter number)
parent
b27fa3cd
Changes
12
Hide whitespace changes
Inline
Side-by-side
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
1
_select_union_statement_001.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
2
_select_union_statement_001.ttcn
View file @
b0edaa1f
...
...
@@ -9,7 +9,7 @@
// In the header part of the select union statement a template instance of union
// type shall be given.
module
NegSem_19030
1
_select_union_statement_001
{
module
NegSem_19030
2
_select_union_statement_001
{
type
component
GeneralComp
{
}
...
...
@@ -20,7 +20,7 @@ module NegSem_190301_select_union_statement_001 {
boolean
boolOption
optional
}
testcase
TC_NegSem_19030
1
_select_union_statement_001
()
runs
on
GeneralComp
{
testcase
TC_NegSem_19030
2
_select_union_statement_001
()
runs
on
GeneralComp
{
var
R
v_rec
:=
{
intOption
:=
omit
,
strOption
:=
"abc"
,
boolOption
:=
omit
}
select
union
(
v_rec
)
{
case
(
intOption
)
{
...
...
@@ -34,6 +34,6 @@ module NegSem_190301_select_union_statement_001 {
}
control
{
execute
(
TC_NegSem_19030
1
_select_union_statement_001
());
execute
(
TC_NegSem_19030
2
_select_union_statement_001
());
}
}
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
1
_select_union_statement_002.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
2
_select_union_statement_002.ttcn
View file @
b0edaa1f
...
...
@@ -9,7 +9,7 @@
// [The TemplateInstance in the header of the select union statement] shall be
// at least partially initialized.
module
NegSem_19030
1
_select_union_statement_002
{
module
NegSem_19030
2
_select_union_statement_002
{
type
component
GeneralComp
{
}
...
...
@@ -28,7 +28,7 @@ module NegSem_190301_select_union_statement_002 {
integer
field2
}
testcase
TC_NegSem_19030
1
_select_union_statement_002
()
runs
on
GeneralComp
{
testcase
TC_NegSem_19030
2
_select_union_statement_002
()
runs
on
GeneralComp
{
var
R
v_rec
;
v_rec
.
field2
:=
3
;
select
union
(
v_rec
.
field1
)
{
...
...
@@ -43,6 +43,6 @@ module NegSem_190301_select_union_statement_002 {
}
control
{
execute
(
TC_NegSem_19030
1
_select_union_statement_002
());
execute
(
TC_NegSem_19030
2
_select_union_statement_002
());
}
}
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
1
_select_union_statement_003.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
2
_select_union_statement_003.ttcn
View file @
b0edaa1f
...
...
@@ -10,7 +10,7 @@
// of an alternative of the union type of the template instance given to the
// statement's header.
module
NegSem_19030
1
_select_union_statement_003
{
module
NegSem_19030
2
_select_union_statement_003
{
type
component
GeneralComp
{
}
...
...
@@ -24,7 +24,7 @@ module NegSem_190301_select_union_statement_003 {
}
recOption
}
testcase
TC_NegSem_19030
1
_select_union_statement_003
()
runs
on
GeneralComp
{
testcase
TC_NegSem_19030
2
_select_union_statement_003
()
runs
on
GeneralComp
{
var
U
v_un
:=
{
intOption
:=
5
}
select
union
(
v_un
)
{
case
(
intOption
)
{
...
...
@@ -40,6 +40,6 @@ module NegSem_190301_select_union_statement_003 {
}
control
{
execute
(
TC_NegSem_19030
1
_select_union_statement_003
());
execute
(
TC_NegSem_19030
2
_select_union_statement_003
());
}
}
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
1
_select_union_statement_004.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
2
_select_union_statement_004.ttcn
View file @
b0edaa1f
...
...
@@ -8,7 +8,7 @@
// The following requirement is tested:
// No two cases in a select union statement shall have the same case Identifier.
module
NegSem_19030
1
_select_union_statement_004
{
module
NegSem_19030
2
_select_union_statement_004
{
type
component
GeneralComp
{
}
...
...
@@ -22,7 +22,7 @@ module NegSem_190301_select_union_statement_004 {
}
recOption
}
testcase
TC_NegSem_19030
1
_select_union_statement_004
()
runs
on
GeneralComp
{
testcase
TC_NegSem_19030
2
_select_union_statement_004
()
runs
on
GeneralComp
{
var
U
v_un
:=
{
recOption
:=
{
field1
:=
1
,
field2
:=
2
}
}
select
union
(
v_un
)
{
case
(
intOption
)
{
...
...
@@ -38,6 +38,6 @@ module NegSem_190301_select_union_statement_004 {
}
control
{
execute
(
TC_NegSem_19030
1
_select_union_statement_004
());
execute
(
TC_NegSem_19030
2
_select_union_statement_004
());
}
}
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
1
_select_union_statement_005.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
2
_select_union_statement_005.ttcn
View file @
b0edaa1f
...
...
@@ -8,7 +8,7 @@
// The following requirement is tested:
// No two cases in a select union statement shall have the same case Identifier.
module
NegSem_19030
1
_select_union_statement_005
{
module
NegSem_19030
2
_select_union_statement_005
{
type
component
GeneralComp
{
}
...
...
@@ -22,7 +22,7 @@ module NegSem_190301_select_union_statement_005 {
}
recOption
}
testcase
TC_NegSem_19030
1
_select_union_statement_005
()
runs
on
GeneralComp
{
testcase
TC_NegSem_19030
2
_select_union_statement_005
()
runs
on
GeneralComp
{
var
U
v_un
:=
{
intOption
:=
10
}
select
union
(
v_un
)
{
case
(
intOption
,
strOption
)
{
...
...
@@ -34,6 +34,6 @@ module NegSem_190301_select_union_statement_005 {
}
control
{
execute
(
TC_NegSem_19030
1
_select_union_statement_005
());
execute
(
TC_NegSem_19030
2
_select_union_statement_005
());
}
}
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
1
_select_union_statement_006.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/NegSem_19030
2
_select_union_statement_006.ttcn
View file @
b0edaa1f
...
...
@@ -2,17 +2,17 @@
** @author STF 521
** @version 0.0.1
** @purpose 1:19.3.2, verify that it is possible to use a select union statement with several branches
** @verdict pass
accept, ttcn3verdict:pass
** @verdict pass
reject
***************************************************/
// The following requirement is tested:
// c) No two cases in a select union statement shall have the same caseIdentifier or TypeIdentifier.
module
NegSem_19030
1
_select_union_statement_006
{
module
NegSem_19030
2
_select_union_statement_006
{
type
component
GeneralComp
{
}
testcase
TC_NegSem_19030
1
_select_union_statement_006
()
runs
on
GeneralComp
{
testcase
TC_NegSem_19030
2
_select_union_statement_006
()
runs
on
GeneralComp
{
var
anytype
v_any
;
v_any
.
integer
:=
2
;
v_any
.
charstring
:=
"abc"
;
...
...
@@ -36,6 +36,6 @@ module NegSem_190301_select_union_statement_006 {
}
control
{
execute
(
TC_NegSem_19030
1
_select_union_statement_006
());
execute
(
TC_NegSem_19030
2
_select_union_statement_006
());
}
}
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
1
_select_union_statement_001.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
2
_select_union_statement_001.ttcn
View file @
b0edaa1f
...
...
@@ -8,7 +8,7 @@
// The following requirement is tested:
// The statement contains a header part and zero or more branches.
module
Sem_19030
1
_select_union_statement_001
{
module
Sem_19030
2
_select_union_statement_001
{
type
component
GeneralComp
{
}
...
...
@@ -19,7 +19,7 @@ module Sem_190301_select_union_statement_001 {
boolean
boolOption
}
testcase
TC_Sem_19030
1
_select_union_statement_001
()
runs
on
GeneralComp
{
testcase
TC_Sem_19030
2
_select_union_statement_001
()
runs
on
GeneralComp
{
var
U
v_un
:=
{
strOption
:=
"abc"
}
select
union
(
v_un
)
{
case
(
intOption
)
{
...
...
@@ -33,6 +33,6 @@ module Sem_190301_select_union_statement_001 {
}
control
{
execute
(
TC_Sem_19030
1
_select_union_statement_001
());
execute
(
TC_Sem_19030
2
_select_union_statement_001
());
}
}
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
1
_select_union_statement_002.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
2
_select_union_statement_002.ttcn
View file @
b0edaa1f
...
...
@@ -10,7 +10,7 @@
// of the alternatives (fields) of the union type (a list branch) or the else keyword
// (an else branch) and a statement block.
module
Sem_19030
1
_select_union_statement_002
{
module
Sem_19030
2
_select_union_statement_002
{
type
component
GeneralComp
{
}
...
...
@@ -22,7 +22,7 @@ module Sem_190301_select_union_statement_002 {
bitstring
bitOption
}
testcase
TC_Sem_19030
1
_select_union_statement_002
()
runs
on
GeneralComp
{
testcase
TC_Sem_19030
2
_select_union_statement_002
()
runs
on
GeneralComp
{
var
U
v_un
:=
{
strOption
:=
"abc"
}
select
union
(
v_un
)
{
case
(
intOption
,
boolOption
,
strOption
)
{
...
...
@@ -34,6 +34,6 @@ module Sem_190301_select_union_statement_002 {
}
control
{
execute
(
TC_Sem_19030
1
_select_union_statement_002
());
execute
(
TC_Sem_19030
2
_select_union_statement_002
());
}
}
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
1
_select_union_statement_003.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
2
_select_union_statement_003.ttcn
View file @
b0edaa1f
...
...
@@ -10,7 +10,7 @@
// of the alternatives (fields) of the union type (a list branch) or the else keyword
// (an else branch) and a statement block.
module
Sem_19030
1
_select_union_statement_003
{
module
Sem_19030
2
_select_union_statement_003
{
type
component
GeneralComp
{
}
...
...
@@ -22,7 +22,7 @@ module Sem_190301_select_union_statement_003 {
bitstring
bitOption
}
testcase
TC_Sem_19030
1
_select_union_statement_003
()
runs
on
GeneralComp
{
testcase
TC_Sem_19030
2
_select_union_statement_003
()
runs
on
GeneralComp
{
var
U
v_un
:=
{
strOption
:=
"abc"
}
select
union
(
v_un
)
{
case
(
strOption
)
{
...
...
@@ -36,6 +36,6 @@ module Sem_190301_select_union_statement_003 {
}
control
{
execute
(
TC_Sem_19030
1
_select_union_statement_003
());
execute
(
TC_Sem_19030
2
_select_union_statement_003
());
}
}
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
1
_select_union_statement_004.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
2
_select_union_statement_004.ttcn
View file @
b0edaa1f
...
...
@@ -9,7 +9,7 @@
// If no case exists for the chosen alternative, the StatementBlock of the else
// branch, if it is present, is executed.
module
Sem_19030
1
_select_union_statement_004
{
module
Sem_19030
2
_select_union_statement_004
{
type
component
GeneralComp
{
}
...
...
@@ -21,7 +21,7 @@ module Sem_190301_select_union_statement_004 {
bitstring
bitOption
}
testcase
TC_Sem_19030
1
_select_union_statement_004
()
runs
on
GeneralComp
{
testcase
TC_Sem_19030
2
_select_union_statement_004
()
runs
on
GeneralComp
{
var
U
v_un
:=
{
strOption
:=
"abc"
}
select
union
(
v_un
)
{
case
(
intOption
)
{
...
...
@@ -35,6 +35,6 @@ module Sem_190301_select_union_statement_004 {
}
control
{
execute
(
TC_Sem_19030
1
_select_union_statement_004
());
execute
(
TC_Sem_19030
2
_select_union_statement_004
());
}
}
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
1
_select_union_statement_005.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
2
_select_union_statement_005.ttcn
View file @
b0edaa1f
...
...
@@ -9,7 +9,7 @@
// Otherwise [if no case exists for the chosen alternative and the else branch
// is not present], the select union statement has no effect.
module
Sem_19030
1
_select_union_statement_005
{
module
Sem_19030
2
_select_union_statement_005
{
type
component
GeneralComp
{
}
...
...
@@ -21,7 +21,7 @@ module Sem_190301_select_union_statement_005 {
bitstring
bitOption
}
testcase
TC_Sem_19030
1
_select_union_statement_005
()
runs
on
GeneralComp
{
testcase
TC_Sem_19030
2
_select_union_statement_005
()
runs
on
GeneralComp
{
var
U
v_un
:=
{
strOption
:=
"abc"
}
select
union
(
v_un
)
{
case
(
intOption
)
{
...
...
@@ -34,6 +34,6 @@ module Sem_190301_select_union_statement_005 {
}
control
{
execute
(
TC_Sem_19030
1
_select_union_statement_005
());
execute
(
TC_Sem_19030
2
_select_union_statement_005
());
}
}
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
1
_select_union_statement_006.ttcn
→
ATS/19_basic_program_statements/1903_select_statements/190302_select_union_statement/Sem_19030
2
_select_union_statement_006.ttcn
View file @
b0edaa1f
...
...
@@ -9,7 +9,7 @@
// [The TemplateInstance in the header of the select union statement] shall be
// at least partially initialized.
module
Sem_19030
1
_select_union_statement_006
{
module
Sem_19030
2
_select_union_statement_006
{
type
component
GeneralComp
{
}
...
...
@@ -23,7 +23,7 @@ module Sem_190301_select_union_statement_006 {
}
recOption
}
testcase
TC_Sem_19030
1
_select_union_statement_006
()
runs
on
GeneralComp
{
testcase
TC_Sem_19030
2
_select_union_statement_006
()
runs
on
GeneralComp
{
var
U
v_un
:=
{
recOption
:=
{
field1
:=
1
,
field2
:=
-
}
}
select
union
(
v_un
)
{
case
(
intOption
)
{
...
...
@@ -37,6 +37,6 @@ module Sem_190301_select_union_statement_006 {
}
control
{
execute
(
TC_Sem_19030
1
_select_union_statement_006
());
execute
(
TC_Sem_19030
2
_select_union_statement_006
());
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment