Cleanup: use EXPECT_STREQ instead of EXPECT_EQ_ARRAY

While both work, the output of strings being different is more useful.
This commit is contained in:
Campbell Barton
2023-04-20 11:58:22 +10:00
parent 7cc7cd0e80
commit 373cfa731f

View File

@@ -99,7 +99,7 @@ TEST(obj_exporter_utils, append_negative_frame_to_filename)
char path_with_frame[FILE_MAX] = {0};
const bool ok = append_frame_to_filename(path_original, frame, path_with_frame);
EXPECT_TRUE(ok);
EXPECT_EQ_ARRAY(path_with_frame, path_truth, BLI_strlen_utf8(path_truth));
EXPECT_STREQ(path_with_frame, path_truth);
}
TEST(obj_exporter_utils, append_positive_frame_to_filename)
@@ -110,7 +110,7 @@ TEST(obj_exporter_utils, append_positive_frame_to_filename)
char path_with_frame[FILE_MAX] = {0};
const bool ok = append_frame_to_filename(path_original, frame, path_with_frame);
EXPECT_TRUE(ok);
EXPECT_EQ_ARRAY(path_with_frame, path_truth, BLI_strlen_utf8(path_truth));
EXPECT_STREQ(path_with_frame, path_truth);
}
static std::string read_temp_file_in_string(const std::string &file_path)