Use dotnet run for ComputeSharp.Tests.GlobalStatements

このコミットが含まれているのは:
Sergio Pedri committed 2023-09-06 21:03:10 +02:00
1 親 9bb2c676ce
コミット baa2c75cbb
3ファイル変更
+6 -10

検索条件に一致するファイルはありません

+5 -5
ファイルの表示
@@ -1,5 +1,4 @@
using ComputeSharp;
using Microsoft.VisualStudio.TestTools.UnitTesting;
float[] numbers = Enumerable.Range(0, 128).Select(i => (float)i).ToArray();
@@ -15,11 +14,12 @@ foreach (ref float number in numbers.AsSpan())
float[] result = buffer.ToArray();
CollectionAssert.AreEqual(
expected: numbers,
actual: result);
if (!numbers.SequenceEqual(result))
{
throw new Exception("The processed buffer does not match the expected results.");
}
Console.WriteLine("Test passed successfully");
Console.WriteLine("Test passed successfully!");
// See https://github.com/Sergio0694/ComputeSharp/issues/374
[ShaderMethod]