File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,17 @@ TEST_CASE("concat_dir_file functionality", "[core][util][file_util]")
20
20
const std::string path = concat_dir_file (temp_dir.path , " bla.txt" );
21
21
22
22
REQUIRE (path.size () > temp_dir.path .size () + std::string (" bla.txt" ).size ());
23
- #ifdef _WIN32
23
+ #ifdef _WIN32
24
24
REQUIRE (path.find (' \\ ' ) != std::string::npos);
25
- #else
25
+ #else
26
26
REQUIRE (path.find (' /' ) != std::string::npos);
27
- #endif
27
+ #endif
28
28
29
- #ifdef _WIN32
30
- const std::string qualified_path = " z:\some\path\f oo.txt" ;
31
- #else
29
+ #ifdef _WIN32
30
+ const std::string qualified_path = " z:\\ some\\ path\ \ foo.txt" ;
31
+ #else
32
32
const std::string qualified_path = " /some/path/foo.txt" ;
33
- #endif
33
+ #endif
34
34
const std::string path2 = concat_dir_file (temp_dir.path , qualified_path);
35
35
REQUIRE (path2 == qualified_path);
36
36
}
@@ -39,11 +39,11 @@ TEST_CASE("is_directory functionality", "[core][util][file_util]")
39
39
{
40
40
temp_dirt temp_dir (" testXXXXXX" );
41
41
42
- #ifdef _WIN32
42
+ #ifdef _WIN32
43
43
std::ofstream outfile (widen (temp_dir (" file" )));
44
- #else
44
+ #else
45
45
std::ofstream outfile (temp_dir (" file" ));
46
- #endif
46
+ #endif
47
47
48
48
outfile.close ();
49
49
You can’t perform that action at this time.
0 commit comments