ScriptCanvasUnitTestFixture.h 664 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/UnitTest/TestTypes.h>
  10. #include <AzTest/AzTest.h>
  11. namespace ScriptCanvasUnitTest
  12. {
  13. class ScriptCanvasUnitTestFixture
  14. : public UnitTest::LeakDetectionFixture
  15. {
  16. };
  17. #if AZ_TRAIT_USE_PLATFORM_SIMD_NEON
  18. MATCHER_P(IsClose, expected, "")
  19. {
  20. constexpr float tolerance = 0.001f;
  21. return arg.IsClose(expected, tolerance);
  22. }
  23. #endif // AZ_TRAIT_USE_PLATFORM_SIMD_NEON
  24. }