Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CTA-LAPP
PHOENIX_LIBS
ParserGenerator
Commits
00129d8a
Commit
00129d8a
authored
Jan 13, 2021
by
Pierre Aubert
Browse files
Add convert to string in enum and var decl tests
parent
1bbe5cc5
Pipeline
#99359
passed with stages
in 7 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
TESTS/TEST_C_ENUM/main_test.cpp
TESTS/TEST_C_ENUM/main_test.cpp
+3
-1
TESTS/TEST_VAR_DECL/main_test.cpp
TESTS/TEST_VAR_DECL/main_test.cpp
+3
-0
No files found.
TESTS/TEST_C_ENUM/main_test.cpp
View file @
00129d8a
...
...
@@ -48,8 +48,10 @@ int printShadokFile(const std::string & fileName){
listShadokAge
.
push_back
(
"PROTECTED"
);
//We get the parsed internal representation
CEnum
&
source
=
parser
.
getSourceS
();
Source
&
source
=
parser
.
getSourceS
();
std
::
vector
<
CEnum
>
&
vecEnum
=
Source_getVecEnum
(
source
).
getVecStmt
();
std
::
string
sourceStr
(
gSource
(
source
));
std
::
cout
<<
"printShadokFile : source converted to string = '"
<<
sourceStr
<<
"'"
<<
std
::
endl
;
if
(
vecEnum
.
size
()
==
listEnumName
.
size
()){
std
::
list
<
std
::
string
>::
iterator
itName
=
listEnumName
.
begin
();
...
...
TESTS/TEST_VAR_DECL/main_test.cpp
View file @
00129d8a
...
...
@@ -60,6 +60,9 @@ int printVarDeclFile(const std::string & fileName){
//We get the parsed internal representation
Source
&
source
=
parser
.
getSourceS
();
std
::
string
sourceStr
(
gSource
(
source
));
std
::
cout
<<
"printVarDeclFile : source converted to string = '"
<<
sourceStr
<<
"'"
<<
std
::
endl
;
std
::
vector
<
Variable
>
&
vecVarDecl
=
Source_getVecVar
(
source
).
getVecStmt
();
if
(
vecVarDecl
.
size
()
==
listVarDeclName
.
size
()){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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