Rasagar/Library/PackageCache/com.unity.burst/Tests/Editor/BurstMathTests.cs

15 lines
366 B
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
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));
}
}