
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
15 lines
366 B
C#
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));
|
|
}
|
|
}
|