Commit b0edaa1f authored by urbant's avatar urbant
Browse files

Correction in names of select-union test cases (wrong chapter number)

parent b27fa3cd
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
// In the header part of the select union statement a template instance of union // In the header part of the select union statement a template instance of union
// type shall be given. // type shall be given.
module NegSem_190301_select_union_statement_001 { module NegSem_190302_select_union_statement_001 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -20,7 +20,7 @@ module NegSem_190301_select_union_statement_001 { ...@@ -20,7 +20,7 @@ module NegSem_190301_select_union_statement_001 {
boolean boolOption optional boolean boolOption optional
} }
testcase TC_NegSem_190301_select_union_statement_001() runs on GeneralComp { testcase TC_NegSem_190302_select_union_statement_001() runs on GeneralComp {
var R v_rec := { intOption := omit, strOption := "abc", boolOption := omit } var R v_rec := { intOption := omit, strOption := "abc", boolOption := omit }
select union (v_rec) { select union (v_rec) {
case (intOption) { case (intOption) {
...@@ -34,6 +34,6 @@ module NegSem_190301_select_union_statement_001 { ...@@ -34,6 +34,6 @@ module NegSem_190301_select_union_statement_001 {
} }
control { control {
execute(TC_NegSem_190301_select_union_statement_001()); execute(TC_NegSem_190302_select_union_statement_001());
} }
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
// [The TemplateInstance in the header of the select union statement] shall be // [The TemplateInstance in the header of the select union statement] shall be
// at least partially initialized. // at least partially initialized.
module NegSem_190301_select_union_statement_002 { module NegSem_190302_select_union_statement_002 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -28,7 +28,7 @@ module NegSem_190301_select_union_statement_002 { ...@@ -28,7 +28,7 @@ module NegSem_190301_select_union_statement_002 {
integer field2 integer field2
} }
testcase TC_NegSem_190301_select_union_statement_002() runs on GeneralComp { testcase TC_NegSem_190302_select_union_statement_002() runs on GeneralComp {
var R v_rec; var R v_rec;
v_rec.field2 := 3; v_rec.field2 := 3;
select union (v_rec.field1) { select union (v_rec.field1) {
...@@ -43,6 +43,6 @@ module NegSem_190301_select_union_statement_002 { ...@@ -43,6 +43,6 @@ module NegSem_190301_select_union_statement_002 {
} }
control { control {
execute(TC_NegSem_190301_select_union_statement_002()); execute(TC_NegSem_190302_select_union_statement_002());
} }
} }
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
// of an alternative of the union type of the template instance given to the // of an alternative of the union type of the template instance given to the
// statement's header. // statement's header.
module NegSem_190301_select_union_statement_003 { module NegSem_190302_select_union_statement_003 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -24,7 +24,7 @@ module NegSem_190301_select_union_statement_003 { ...@@ -24,7 +24,7 @@ module NegSem_190301_select_union_statement_003 {
} recOption } recOption
} }
testcase TC_NegSem_190301_select_union_statement_003() runs on GeneralComp { testcase TC_NegSem_190302_select_union_statement_003() runs on GeneralComp {
var U v_un := { intOption := 5 } var U v_un := { intOption := 5 }
select union (v_un) { select union (v_un) {
case (intOption) { case (intOption) {
...@@ -40,6 +40,6 @@ module NegSem_190301_select_union_statement_003 { ...@@ -40,6 +40,6 @@ module NegSem_190301_select_union_statement_003 {
} }
control { control {
execute(TC_NegSem_190301_select_union_statement_003()); execute(TC_NegSem_190302_select_union_statement_003());
} }
} }
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// The following requirement is tested: // The following requirement is tested:
// No two cases in a select union statement shall have the same case Identifier. // No two cases in a select union statement shall have the same case Identifier.
module NegSem_190301_select_union_statement_004 { module NegSem_190302_select_union_statement_004 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -22,7 +22,7 @@ module NegSem_190301_select_union_statement_004 { ...@@ -22,7 +22,7 @@ module NegSem_190301_select_union_statement_004 {
} recOption } recOption
} }
testcase TC_NegSem_190301_select_union_statement_004() runs on GeneralComp { testcase TC_NegSem_190302_select_union_statement_004() runs on GeneralComp {
var U v_un := { recOption := { field1 := 1, field2 := 2 } } var U v_un := { recOption := { field1 := 1, field2 := 2 } }
select union (v_un) { select union (v_un) {
case (intOption) { case (intOption) {
...@@ -38,6 +38,6 @@ module NegSem_190301_select_union_statement_004 { ...@@ -38,6 +38,6 @@ module NegSem_190301_select_union_statement_004 {
} }
control { control {
execute(TC_NegSem_190301_select_union_statement_004()); execute(TC_NegSem_190302_select_union_statement_004());
} }
} }
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// The following requirement is tested: // The following requirement is tested:
// No two cases in a select union statement shall have the same case Identifier. // No two cases in a select union statement shall have the same case Identifier.
module NegSem_190301_select_union_statement_005 { module NegSem_190302_select_union_statement_005 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -22,7 +22,7 @@ module NegSem_190301_select_union_statement_005 { ...@@ -22,7 +22,7 @@ module NegSem_190301_select_union_statement_005 {
} recOption } recOption
} }
testcase TC_NegSem_190301_select_union_statement_005() runs on GeneralComp { testcase TC_NegSem_190302_select_union_statement_005() runs on GeneralComp {
var U v_un := { intOption := 10 } var U v_un := { intOption := 10 }
select union (v_un) { select union (v_un) {
case (intOption, strOption) { case (intOption, strOption) {
...@@ -34,6 +34,6 @@ module NegSem_190301_select_union_statement_005 { ...@@ -34,6 +34,6 @@ module NegSem_190301_select_union_statement_005 {
} }
control { control {
execute(TC_NegSem_190301_select_union_statement_005()); execute(TC_NegSem_190302_select_union_statement_005());
} }
} }
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
** @author STF 521 ** @author STF 521
** @version 0.0.1 ** @version 0.0.1
** @purpose 1:19.3.2, verify that it is possible to use a select union statement with several branches ** @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: // The following requirement is tested:
// c) No two cases in a select union statement shall have the same caseIdentifier or TypeIdentifier. // c) No two cases in a select union statement shall have the same caseIdentifier or TypeIdentifier.
module NegSem_190301_select_union_statement_006 { module NegSem_190302_select_union_statement_006 {
type component GeneralComp { type component GeneralComp {
} }
testcase TC_NegSem_190301_select_union_statement_006() runs on GeneralComp { testcase TC_NegSem_190302_select_union_statement_006() runs on GeneralComp {
var anytype v_any; var anytype v_any;
v_any.integer := 2; v_any.integer := 2;
v_any.charstring := "abc"; v_any.charstring := "abc";
...@@ -36,6 +36,6 @@ module NegSem_190301_select_union_statement_006 { ...@@ -36,6 +36,6 @@ module NegSem_190301_select_union_statement_006 {
} }
control { control {
execute(TC_NegSem_190301_select_union_statement_006()); execute(TC_NegSem_190302_select_union_statement_006());
} }
} }
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// The following requirement is tested: // The following requirement is tested:
// The statement contains a header part and zero or more branches. // The statement contains a header part and zero or more branches.
module Sem_190301_select_union_statement_001 { module Sem_190302_select_union_statement_001 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -19,7 +19,7 @@ module Sem_190301_select_union_statement_001 { ...@@ -19,7 +19,7 @@ module Sem_190301_select_union_statement_001 {
boolean boolOption boolean boolOption
} }
testcase TC_Sem_190301_select_union_statement_001() runs on GeneralComp { testcase TC_Sem_190302_select_union_statement_001() runs on GeneralComp {
var U v_un := { strOption := "abc" } var U v_un := { strOption := "abc" }
select union (v_un) { select union (v_un) {
case (intOption) { case (intOption) {
...@@ -33,6 +33,6 @@ module Sem_190301_select_union_statement_001 { ...@@ -33,6 +33,6 @@ module Sem_190301_select_union_statement_001 {
} }
control { control {
execute(TC_Sem_190301_select_union_statement_001()); execute(TC_Sem_190302_select_union_statement_001());
} }
} }
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
// of the alternatives (fields) of the union type (a list branch) or the else keyword // of the alternatives (fields) of the union type (a list branch) or the else keyword
// (an else branch) and a statement block. // (an else branch) and a statement block.
module Sem_190301_select_union_statement_002 { module Sem_190302_select_union_statement_002 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -22,7 +22,7 @@ module Sem_190301_select_union_statement_002 { ...@@ -22,7 +22,7 @@ module Sem_190301_select_union_statement_002 {
bitstring bitOption bitstring bitOption
} }
testcase TC_Sem_190301_select_union_statement_002() runs on GeneralComp { testcase TC_Sem_190302_select_union_statement_002() runs on GeneralComp {
var U v_un := { strOption := "abc" } var U v_un := { strOption := "abc" }
select union (v_un) { select union (v_un) {
case (intOption, boolOption, strOption) { case (intOption, boolOption, strOption) {
...@@ -34,6 +34,6 @@ module Sem_190301_select_union_statement_002 { ...@@ -34,6 +34,6 @@ module Sem_190301_select_union_statement_002 {
} }
control { control {
execute(TC_Sem_190301_select_union_statement_002()); execute(TC_Sem_190302_select_union_statement_002());
} }
} }
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
// of the alternatives (fields) of the union type (a list branch) or the else keyword // of the alternatives (fields) of the union type (a list branch) or the else keyword
// (an else branch) and a statement block. // (an else branch) and a statement block.
module Sem_190301_select_union_statement_003 { module Sem_190302_select_union_statement_003 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -22,7 +22,7 @@ module Sem_190301_select_union_statement_003 { ...@@ -22,7 +22,7 @@ module Sem_190301_select_union_statement_003 {
bitstring bitOption bitstring bitOption
} }
testcase TC_Sem_190301_select_union_statement_003() runs on GeneralComp { testcase TC_Sem_190302_select_union_statement_003() runs on GeneralComp {
var U v_un := { strOption := "abc" } var U v_un := { strOption := "abc" }
select union (v_un) { select union (v_un) {
case (strOption) { case (strOption) {
...@@ -36,6 +36,6 @@ module Sem_190301_select_union_statement_003 { ...@@ -36,6 +36,6 @@ module Sem_190301_select_union_statement_003 {
} }
control { control {
execute(TC_Sem_190301_select_union_statement_003()); execute(TC_Sem_190302_select_union_statement_003());
} }
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
// If no case exists for the chosen alternative, the StatementBlock of the else // If no case exists for the chosen alternative, the StatementBlock of the else
// branch, if it is present, is executed. // branch, if it is present, is executed.
module Sem_190301_select_union_statement_004 { module Sem_190302_select_union_statement_004 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -21,7 +21,7 @@ module Sem_190301_select_union_statement_004 { ...@@ -21,7 +21,7 @@ module Sem_190301_select_union_statement_004 {
bitstring bitOption bitstring bitOption
} }
testcase TC_Sem_190301_select_union_statement_004() runs on GeneralComp { testcase TC_Sem_190302_select_union_statement_004() runs on GeneralComp {
var U v_un := { strOption := "abc" } var U v_un := { strOption := "abc" }
select union (v_un) { select union (v_un) {
case (intOption) { case (intOption) {
...@@ -35,6 +35,6 @@ module Sem_190301_select_union_statement_004 { ...@@ -35,6 +35,6 @@ module Sem_190301_select_union_statement_004 {
} }
control { control {
execute(TC_Sem_190301_select_union_statement_004()); execute(TC_Sem_190302_select_union_statement_004());
} }
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
// Otherwise [if no case exists for the chosen alternative and the else branch // Otherwise [if no case exists for the chosen alternative and the else branch
// is not present], the select union statement has no effect. // is not present], the select union statement has no effect.
module Sem_190301_select_union_statement_005 { module Sem_190302_select_union_statement_005 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -21,7 +21,7 @@ module Sem_190301_select_union_statement_005 { ...@@ -21,7 +21,7 @@ module Sem_190301_select_union_statement_005 {
bitstring bitOption bitstring bitOption
} }
testcase TC_Sem_190301_select_union_statement_005() runs on GeneralComp { testcase TC_Sem_190302_select_union_statement_005() runs on GeneralComp {
var U v_un := { strOption := "abc" } var U v_un := { strOption := "abc" }
select union (v_un) { select union (v_un) {
case (intOption) { case (intOption) {
...@@ -34,6 +34,6 @@ module Sem_190301_select_union_statement_005 { ...@@ -34,6 +34,6 @@ module Sem_190301_select_union_statement_005 {
} }
control { control {
execute(TC_Sem_190301_select_union_statement_005()); execute(TC_Sem_190302_select_union_statement_005());
} }
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
// [The TemplateInstance in the header of the select union statement] shall be // [The TemplateInstance in the header of the select union statement] shall be
// at least partially initialized. // at least partially initialized.
module Sem_190301_select_union_statement_006 { module Sem_190302_select_union_statement_006 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -23,7 +23,7 @@ module Sem_190301_select_union_statement_006 { ...@@ -23,7 +23,7 @@ module Sem_190301_select_union_statement_006 {
} recOption } recOption
} }
testcase TC_Sem_190301_select_union_statement_006() runs on GeneralComp { testcase TC_Sem_190302_select_union_statement_006() runs on GeneralComp {
var U v_un := { recOption := { field1 := 1, field2 := - } } var U v_un := { recOption := { field1 := 1, field2 := - } }
select union (v_un) { select union (v_un) {
case (intOption) { case (intOption) {
...@@ -37,6 +37,6 @@ module Sem_190301_select_union_statement_006 { ...@@ -37,6 +37,6 @@ module Sem_190301_select_union_statement_006 {
} }
control { control {
execute(TC_Sem_190301_select_union_statement_006()); execute(TC_Sem_190302_select_union_statement_006());
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment