説明なし
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

BurstMathTests.cs 366B

1234567891011121314
  1. using NUnit.Framework;
  2. using Unity.Burst.Editor;
  3. public class BurstMathTests
  4. {
  5. [Test]
  6. [TestCase(1f, 3f, 3f, true)]
  7. [TestCase(1f, 3f, 2f, true)]
  8. [TestCase(1f, 3f, 3.00001f, false)]
  9. public void WithinRangeTest(float start, float end, float num, bool res)
  10. {
  11. Assert.That(BurstMath.WithinRange(start, end, num), Is.EqualTo(res));
  12. }
  13. }