Add more assertions to tests build

This commit is contained in:
Wojtek Figat
2023-06-09 23:34:55 +02:00
parent 7c55d50507
commit b299ed3246
3 changed files with 19 additions and 8 deletions

View File

@@ -304,7 +304,7 @@ bool Content::GetAssetInfo(const StringView& path, AssetInfo& info)
auto storage = ContentStorageManager::GetStorage(path);
if (storage)
{
#if BUILD_DEBUG
#if BUILD_DEBUG || FLAX_TESTS
ASSERT(storage->GetPath() == path);
#endif
@@ -904,7 +904,7 @@ bool Content::IsAssetTypeIdInvalid(const ScriptingTypeHandle& type, const Script
if (!type || !assetType)
return false;
#if BUILD_DEBUG
#if BUILD_DEBUG || FLAX_TESTS
// Peek types for debugging
const auto& typeObj = type.GetType();
const auto& assetTypeObj = assetType.GetType();