Singularity/Library/PackageCache/com.unity.burst@1.8.4/Tests/Editor/BurstMathTests.cs
2024-05-06 11:45:45 -07:00

15 lines
366 B
C#

using NUnit.Framework;
using Unity.Burst.Editor;
public class BurstMathTests
{
[Test]
[TestCase(1f, 3f, 3f, true)]
[TestCase(1f, 3f, 2f, true)]
[TestCase(1f, 3f, 3.00001f, false)]
public void WithinRangeTest(float start, float end, float num, bool res)
{
Assert.That(BurstMath.WithinRange(start, end, num), Is.EqualTo(res));
}
}