You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
533 B
15 lines
533 B
#include <test_common.h>
|
|
#include <igl/path_to_executable.h>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
TEST_CASE("path_to_executable: example", "[igl]")
|
|
{
|
|
std::string path_to_executable = igl::path_to_executable();
|
|
REQUIRE(0 < path_to_executable.size());
|
|
// check if path_to_executable ends with correct file name, on windows .exe suffix is added.
|
|
std::string executable = "test_igl_core";
|
|
int pos = path_to_executable.length()-(executable.length() + 4/*".exe"*/);
|
|
REQUIRE( std::string::npos != path_to_executable.find(executable, pos));
|
|
}
|
|
|