Browse Source

Update unit test EQ compare to STREQ

Signed-off-by: amzn-mike <[email protected]>
amzn-mike 2 năm trước cách đây
mục cha
commit
ec3f711fde

+ 2 - 2
Code/Tools/AssetProcessor/native/tests/UuidManagerTests.cpp

@@ -495,7 +495,7 @@ namespace UnitTests
 
 
         // Verify the case of the metadata file is lowercase to start with
         // Verify the case of the metadata file is lowercase to start with
         EXPECT_TRUE(AssetUtilities::UpdateToCorrectCase("c:/somepath", relPath));
         EXPECT_TRUE(AssetUtilities::UpdateToCorrectCase("c:/somepath", relPath));
-        EXPECT_EQ(relPath, QString("mockfile.txt") + AzToolsFramework::MetadataManager::MetadataFileExtension);
+        EXPECT_STREQ(relPath.toUtf8().constData(), (QString("mockfile.txt") + AzToolsFramework::MetadataManager::MetadataFileExtension).toUtf8().constData());
 
 
         // Rename the source file from lowercase to uppercase and notify about the old file being removed
         // Rename the source file from lowercase to uppercase and notify about the old file being removed
         io->Rename(TestFile.c_str(), RenamedFile.c_str());
         io->Rename(TestFile.c_str(), RenamedFile.c_str());
@@ -509,6 +509,6 @@ namespace UnitTests
 
 
         // Verify the case of the metadata file is actually updated
         // Verify the case of the metadata file is actually updated
         EXPECT_TRUE(AssetUtilities::UpdateToCorrectCase("c:/somepath", relPath));
         EXPECT_TRUE(AssetUtilities::UpdateToCorrectCase("c:/somepath", relPath));
-        EXPECT_EQ(relPath, QString("MockFile.txt") + AzToolsFramework::MetadataManager::MetadataFileExtension);
+        EXPECT_STREQ(relPath.toUtf8().constData(), (QString("MockFile.txt") + AzToolsFramework::MetadataManager::MetadataFileExtension).toUtf8().constData());
     }
     }
 }
 }