Skip to content
Snippets Groups Projects
Commit cc040652 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

move cli test line to common file

parent 245f50fc
No related branches found
No related tags found
1 merge request!125procedural aql
...@@ -2,17 +2,11 @@ ...@@ -2,17 +2,11 @@
   
#include <alib/iostream> #include <alib/iostream>
   
#include <lexer/Lexer.h>
#include <parser/Parser.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <registry/AlgorithmRegistry.hpp> #include <registry/AlgorithmRegistry.hpp>
#include <registration/AlgoRegistration.hpp> #include <registration/AlgoRegistration.hpp>
#include <readline/StringLineInterface.h>
   
void testLine ( std::string line, cli::Environment & environment ) { #include "common/TestLine.hpp"
cli::Parser ( cli::Lexer ( cli::CharSequence ( cli::StringLineInterface ( line ) ) ) ).parse ( )->run ( environment );
}
   
class Foo { class Foo {
int m_base; int m_base;
......
#include "TestLine.hpp"
#include <lexer/Lexer.h>
#include <parser/Parser.h>
#include <readline/StringLineInterface.h>
void testLine ( std::string line, cli::Environment & environment ) {
cli::Parser ( cli::Lexer ( cli::CharSequence ( cli::StringLineInterface ( line ) ) ) ).parse ( )->run ( environment );
}
#include <environment/Environment.h>
#include <string>
void testLine ( std::string line, cli::Environment & environment );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment