From af58da58fd04d8c87a0ec493602df8ad624ef31f Mon Sep 17 00:00:00 2001 From: Claire Date: Sun, 27 Jul 2025 09:33:38 -0700 Subject: [PATCH] Fixed Unit Test in `apps/openmw_tests/mwworld/testptr.cpp` --- apps/openmw_tests/mwworld/testptr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/openmw_tests/mwworld/testptr.cpp b/apps/openmw_tests/mwworld/testptr.cpp index 7bc0bebcec..9d1dd7aa60 100644 --- a/apps/openmw_tests/mwworld/testptr.cpp +++ b/apps/openmw_tests/mwworld/testptr.cpp @@ -7,6 +7,7 @@ #include #include +#include #include namespace MWWorld @@ -36,7 +37,7 @@ namespace MWWorld LiveCellRef liveCellRef(cellRef, &npc); liveCellRef.mData.setDeletedByContentFile(true); Ptr ptr(&liveCellRef); - EXPECT_EQ(ptr.toString(), "deleted object0xd00002a (NPC, \"player\")"); + EXPECT_THAT(ptr.toString(), StrCaseEq("deleted object0xd00002a (NPC, \"player\")")); } TEST(MWWorldPtrTest, toStringShouldReturnHumanReadableTextRepresentationOfPtr) @@ -53,7 +54,7 @@ namespace MWWorld cellRef.mRefNum = ESM::RefNum{ .mIndex = 0x2a, .mContentFile = 0xd }; LiveCellRef liveCellRef(cellRef, &npc); Ptr ptr(&liveCellRef); - EXPECT_EQ(ptr.toString(), "object0xd00002a (NPC, \"player\")"); + EXPECT_THAT(ptr.toString(), StrCaseEq("object0xd00002a (NPC, \"player\")")); } TEST(MWWorldPtrTest, underlyingLiveCellRefShouldBeDeregisteredOnDestruction)