diff options
Diffstat (limited to 'tests/PathOpsTypesTest.cpp')
-rwxr-xr-x | tests/PathOpsTypesTest.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/PathOpsTypesTest.cpp b/tests/PathOpsTypesTest.cpp index 6fd6e10e7d..820f69eac4 100755 --- a/tests/PathOpsTypesTest.cpp +++ b/tests/PathOpsTypesTest.cpp @@ -6,19 +6,19 @@ */ #include "PathOpsTestCommon.h" #include "Test.h" -
-static const double roughlyTests[][2] = {
- {5.0402503619650929e-005, 4.3178054475078825e-005}
-};
-
+ +static const double roughlyTests[][2] = { + {5.0402503619650929e-005, 4.3178054475078825e-005} +}; + static const size_t roughlyTestsCount = SK_ARRAY_COUNT(roughlyTests); -
+ static void PathOpsRoughlyTest(skiatest::Reporter* reporter) { for (size_t index = 0; index < roughlyTestsCount; ++index) { bool equal = RoughlyEqualUlps(roughlyTests[index][0], roughlyTests[index][1]); REPORTER_ASSERT(reporter, equal); } -}
-
+} + #include "TestClassDef.h" DEFINE_TESTCLASS_SHORT(PathOpsRoughlyTest) |