Skip to content

Commit

Permalink
remove newline and carriage returns from expected file contents
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed May 6, 2024
1 parent 1eee8a2 commit f829b78
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions OdbDesignTests/FileReaderTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@ using namespace Utils;

namespace Odb::Test
{
static inline constexpr char FILE_CONTENTS[] = "Hello, World!\r\n";
static inline constexpr char FILE_CONTENTS[] = "Hello, World!";
static inline constexpr char FILE_NAME[] = "filereader_test1.txt";

TEST_F(TestDataFixture, Test_FileReaderRead_Buffered)
TEST_F(TestDataFixture, Test_FileReaderRead_FileExists)
{
auto filePath = getTestDataFilePath("filereader_test1.txt");
auto filePath = getTestDataFilePath(FILE_NAME);
ASSERT_FALSE(filePath.empty());
ASSERT_TRUE(exists(filePath));
}

TEST_F(TestDataFixture, Test_FileReaderRead_Buffered)
{
auto filePath = getTestDataFilePath(FILE_NAME);
ASSERT_FALSE(filePath.empty());
ASSERT_TRUE(exists(filePath));

FileReader fr(filePath);
Expand All @@ -31,8 +39,8 @@ namespace Odb::Test

TEST_F(TestDataFixture, Test_FileReaderRead_Unbuffered)
{
auto filePath = getTestDataFilePath("filereader_test1.txt");

auto filePath = getTestDataFilePath(FILE_NAME);
ASSERT_FALSE(filePath.empty());
ASSERT_TRUE(exists(filePath));

FileReader fr(filePath);
Expand Down

0 comments on commit f829b78

Please sign in to comment.