From 7690d597c84a71aa126f5b2eb084003d4158113d Mon Sep 17 00:00:00 2001 From: "Keidan (K. Billonneau)" Date: Sun, 14 Apr 2024 22:46:03 +0200 Subject: [PATCH] Fix tests name --- src/main_test.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main_test.cpp b/src/main_test.cpp index 55ff174..bf79cb3 100644 --- a/src/main_test.cpp +++ b/src/main_test.cpp @@ -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); }