Skip to content
Snippets Groups Projects
Commit 2477fe2d authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add simple test on filename extension to decide its treatment

This is a temporary construction to allow language tests while still checking
that nothing is broken (i.e. w/o language)
parent 7ba967aa
No related branches found
No related tags found
1 merge request!12Feature/language
...@@ -27,11 +27,17 @@ ...@@ -27,11 +27,17 @@
#include <limits> #include <limits>
#include <map> #include <map>
#include <regex>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
std::string filename = initialize(argc, argv); std::string filename = initialize(argc, argv);
std::regex gmsh_regex("(.*).msh");
if (not std::regex_match(filename, gmsh_regex)) {
parser(filename); parser(filename);
return 0;
}
std::map<std::string, double> method_cost_map; std::map<std::string, double> method_cost_map;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment