From 91327c57ce9831eebed3bcb899d765a50593e67b Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 3 Jan 2020 17:25:31 +0100 Subject: [PATCH] ZoneCodeGenerator: Fix not generating tests for structure sizes and alignments --- src/ZoneCodeGenerator/Generating/Templates/AssetStructTests.stg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZoneCodeGenerator/Generating/Templates/AssetStructTests.stg b/src/ZoneCodeGenerator/Generating/Templates/AssetStructTests.stg index aee47485..31429fac 100644 --- a/src/ZoneCodeGenerator/Generating/Templates/AssetStructTests.stg +++ b/src/ZoneCodeGenerator/Generating/Templates/AssetStructTests.stg @@ -34,7 +34,7 @@ namespace ZoneCommonTests { public: $TestMethod(context.Asset)$ - $context.Structures:{structure | $if(!structure.IsAsset)$$TestMethod(structure)$ + $context.UsedStructures:{structure | $if(!structure.Information.Type.IsAnonymous && !structure.Information.IsAsset)$$TestMethod(structure)$ $endif$}$ }; }