Skip to content

Commit

Permalink
Fix tests name
Browse files Browse the repository at this point in the history
  • Loading branch information
Keidan committed Apr 14, 2024
1 parent 090e6bb commit 7690d59
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,38 +301,38 @@ TEST(IntelHexTest, ParseLine)
EXPECT_EQ(1, line.checksum == 89);
}

TEST(IntelHexTest, ParseLineError1)
TEST(IntelHexTest, ParseLineErrorSmall)
{
Line line{};
auto b = IntelHex::parseLine(":10000000", line);
EXPECT_EQ(0, b);
}

TEST(IntelHexTest, ParseLineError2)
TEST(IntelHexTest, ParseLineErrorNotBeginWith)
{
Line line{};
auto b = IntelHex::parseLine("0000000000", line);
EXPECT_EQ(0, b);
}

TEST(IntelHexTest, ParseLineError3)
TEST(IntelHexTest, ParseLineErrorDataNotPresent)
{
Line line{};
auto b = IntelHex::parseLine(":0000000000", line);
EXPECT_EQ(0, b);
}

TEST(IntelHexTest, ParseLineError4)
TEST(IntelHexTest, ParseLineErrorInvalidChecksum)
{
Line line{};
auto b = IntelHex::parseLine(":00000000F6", line);
auto b = IntelHex::parseLine(":1000000000200020C5020008B9020008BB02000800", line);
EXPECT_EQ(0, b);
}

TEST(IntelHexTest, ParseLineError5)
TEST(IntelHexTest, ParseLineErrorInvalidCode)
{
Line line{};
auto b = IntelHex::parseLine(":1000000000200020C5020008B9020008BB02000800", line);
auto b = IntelHex::parseLine(":100000FF00200020C5020008B9020008BB02000800", line);
EXPECT_EQ(0, b);
}

Expand Down

0 comments on commit 7690d59

Please sign in to comment.