Skip to content

Commit

Permalink
Mixed cases letter
Browse files Browse the repository at this point in the history
  • Loading branch information
BishrutSubedi committed Jun 6, 2024
1 parent f9dc8fd commit a914773
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/coverage/datamodel/UuidSerializerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ TEST(DeserializerTest, DeserializeUUID) {
// Test deserialization with leading/trailing zeros and mixed case letters
TEST_F(TestUuidSerializer,
DeserializeWithLeadingZerosAndTrailingZerosAndMixedCaseLetters) {
std::string uuid_str = "00001234-5678-90Ab-fEdC-ba0987600000";
std::string uuid_str = "00001234-5678-90ab-fedc-ba0987600000";

uprotocol::v1::UUID deserialized_uuid =
uprotocol::datamodel::serializer::uuid::AsString::deserialize(uuid_str);

// Assert the deserialized UUID matches the expected values
EXPECT_EQ(deserialized_uuid.msb(), 0x00001234567890AB);
EXPECT_EQ(deserialized_uuid.lsb(), 0xFEDCBA0987600000);
EXPECT_EQ(deserialized_uuid.msb(), 0x00001234567890aB);
EXPECT_EQ(deserialized_uuid.lsb(), 0xFedcBA0987600000);
}

// Test invalid string deserialization
Expand Down

0 comments on commit a914773

Please sign in to comment.