Skip to content

Commit 3414898

Browse files
Sandeep PinnintiGitHub Enterprise
authored andcommitted
Rfe/ric 1080 support internal transitions in class state machines (#81)
* Internal Transitions test case * test case update * update in test case * RIC-1080 update in test case * Test case update * Update in test case * RIC-1080 update in test case * added test case and update for PR comments * added test case and update for PR comments * PR commnets fix * Update in test case md file * Update in test case * PR commnets fix * rename target folder * change string to RTString
1 parent 10ceaa4 commit 3414898

4 files changed

Lines changed: 6 additions & 16 deletions

File tree

art-comp-test/tests/trigger_operation_internal/Top.art

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
class DataObject {
2-
[[rt::header_preface]]
3-
`
4-
#include <iostream>
5-
`
62
[[rt::impl_preface]]
73
`
84
#include "testlib.art.h"
@@ -77,7 +73,6 @@ capsule Top {
7773
`
7874
#include "testlib.art.h"
7975
#include "DataObject.h"
80-
#include <iostream>
8176
`
8277
[[rt::decl]]
8378
`
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let tc = TCF.define(TCF.CPP_TRANSFORM);
1+
let tc = TCF.define(TCF.ART_TO_CPP);
22
tc.topCapsule = 'Top';
33
tc.prerequisites = ["../../TestUtils/testlib.tcjs"];
44
tc.targetFolder = 'trigger_operation_internal_target';

art-comp-test/tests/trigger_operation_internal_1/Top.art

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
class DataObject {
2-
[[rt::header_preface]]
3-
`
4-
#include <iostream>
5-
`
62
[[rt::impl_preface]]
73
`
84
#include "testlib.art.h"
@@ -12,7 +8,7 @@ class DataObject {
128
public:
139
DataObject();
1410
public:
15-
std::string rtg_current_val, entry_point1, entry_point2, entry_point3;
11+
RTString rtg_current_val, entry_point1, entry_point2, entry_point3;
1612
`
1713
[[rt::impl]]
1814
`
@@ -84,7 +80,6 @@ capsule Top {
8480
`
8581
#include "testlib.art.h"
8682
#include "DataObject.h"
87-
#include <iostream>
8883
`
8984
[[rt::decl]]
9085
`
@@ -98,11 +93,11 @@ capsule Top {
9893
`
9994
_dataObject1.op();
10095
_dataObject1.op1();
101-
ASSERT(_dataObject1.rtg_current_val == "c_op1", "Expected c_op1");
96+
ASSERT(RTMemoryUtil::strcmp(_dataObject1.rtg_current_val, "c_op1") == 0, "Expected c_op1");
10297
_dataObject1.op2();
103-
ASSERT(_dataObject1.rtg_current_val == "b_op2", "Expected b_op2");
98+
ASSERT(RTMemoryUtil::strcmp(_dataObject1.rtg_current_val, "b_op2") == 0, "Expected b_op2");
10499
_dataObject1.op3();
105-
ASSERT(_dataObject1.rtg_current_val == "a_op3", "Expected a_op3");
100+
ASSERT(RTMemoryUtil::strcmp(_dataObject1.rtg_current_val, "a_op3") == 0, "Expected a_op3");
106101
PASS();
107102
`;
108103
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let tc = TCF.define(TCF.CPP_TRANSFORM);
1+
let tc = TCF.define(TCF.ART_TO_CPP);
22
tc.topCapsule = 'Top';
33
tc.prerequisites = ["../../TestUtils/testlib.tcjs"];
44
tc.targetFolder = 'trigger_operation_internal_1_target';

0 commit comments

Comments
 (0)