Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 00129d8a authored by Pierre Aubert's avatar 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
......@@ -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();
......
......@@ -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()){
......
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