Commit a33b3c64 authored by Damien L-G's avatar Damien L-G

Cleanup example and add it to the tests

parent 696a48ed
......@@ -46,6 +46,10 @@ add_executable(Map noname_TestMap.cpp)
target_link_libraries(Map noname)
add_test(NAME testMap COMMAND Map)
add_executable(example noname_example.cpp)
target_link_libraries(example noname)
add_test(NAME testExample COMMAND example)
find_package(benchmark)
if(benchmark_FOUND)
add_executable(benchmark noname_benchmark.cpp)
......
......@@ -10,8 +10,7 @@ int main() {
std::string const fy = prefix + "p.csv";
std::string const fz = prefix + "h.csv";
char const sep = '?';
std::string const k =
sep + fx + sep + fy + sep + fz + sep + "bicubic" + sep + "error";
std::string const k = sep + fx + sep + fy + sep + fz;
std::fstream sx(fx);
std::fstream sy(fy);
std::fstream sz(fz);
......
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