5 #include "testing/testing.h"
9 TEST(fileops, fstream_open_string_filename)
11 const std::string test_files_dir = blender::tests::flags_test_asset_dir();
12 if (test_files_dir.empty()) {
16 const std::string filepath = test_files_dir +
"/asset_library/новый/blender_assets.cats.txt";
17 fstream in(filepath, std::ios_base::in);
18 ASSERT_TRUE(in.is_open()) <<
"could not open " << filepath;
24 TEST(fileops, fstream_open_charptr_filename)
26 const std::string test_files_dir = blender::tests::flags_test_asset_dir();
27 if (test_files_dir.empty()) {
31 const std::string filepath_str = test_files_dir +
"/asset_library/новый/blender_assets.cats.txt";
32 const char *filepath = filepath_str.c_str();
33 fstream in(filepath, std::ios_base::in);
34 ASSERT_TRUE(in.is_open()) <<
"could not open " << filepath;
File and directory operations.
TEST(any, DefaultConstructor)