diff --git a/Src/ILGPU.Algorithms.Tests/Generic/AlgorithmsTestData.tt b/Src/ILGPU.Algorithms.Tests/Generic/AlgorithmsTestData.tt index dcc6fcbf0b..0f9129dcf1 100644 --- a/Src/ILGPU.Algorithms.Tests/Generic/AlgorithmsTestData.tt +++ b/Src/ILGPU.Algorithms.Tests/Generic/AlgorithmsTestData.tt @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------- // ILGPU Algorithms -// Copyright (c) 2021 ILGPU Project +// Copyright (c) 2021-2023 ILGPU Project // www.ilgpu.net // // File: AlgorithmsTestData.tt/AlgorithmsTestData.cs @@ -16,6 +16,7 @@ using ILGPU.Algorithms.RadixSortOperations; using ILGPU.Algorithms.ScanReduceOperations; +using ILGPU.Util; using System.Numerics; using System.Runtime.CompilerServices; using Xunit.Abstractions; @@ -30,7 +31,10 @@ namespace ILGPU.Algorithms.Tests public class AlgorithmsTestData : IXunitSerializable { - public AlgorithmsTestData() { } + public AlgorithmsTestData() + { + Value = Utilities.InitNotNullable(); + } public AlgorithmsTestData(T value) { @@ -48,7 +52,7 @@ namespace ILGPU.Algorithms.Tests info.AddValue(nameof(Value), Value); } - public override string ToString() => Value.ToString(); + public override string ToString() => $"{Value}"; } #region Xunit Sequencer Structures diff --git a/Src/ILGPU.Algorithms.Tests/ILGPU.Algorithms.Tests.csproj b/Src/ILGPU.Algorithms.Tests/ILGPU.Algorithms.Tests.csproj index 5f08e940b9..23bd2636d5 100644 --- a/Src/ILGPU.Algorithms.Tests/ILGPU.Algorithms.Tests.csproj +++ b/Src/ILGPU.Algorithms.Tests/ILGPU.Algorithms.Tests.csproj @@ -6,6 +6,14 @@ latest + + + enable + + + $(NoWarn);nullable + + $(MSBuildProjectDirectory)\..\ILGPU.Tests\.test.runsettings