暂无描述
您最多选择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. }