Index: tests/PathOpsCubicIntersectionTest.cpp |
diff --git a/tests/PathOpsCubicIntersectionTest.cpp b/tests/PathOpsCubicIntersectionTest.cpp |
index 4cac2d07ec27a753ba9795121abbae8c20c4b065..c4915e99c9a378c32b121356c8f43bbac08f29aa 100644 |
--- a/tests/PathOpsCubicIntersectionTest.cpp |
+++ b/tests/PathOpsCubicIntersectionTest.cpp |
@@ -268,6 +268,8 @@ static const SkDCubic newTestSet[] = { |
const size_t newTestSetCount = SK_ARRAY_COUNT(newTestSet); |
static void oneOff(skiatest::Reporter* reporter, const SkDCubic& cubic1, const SkDCubic& cubic2) { |
+ SkASSERT(ValidCubic(cubic1)); |
+ SkASSERT(ValidCubic(cubic2)); |
#if ONE_OFF_DEBUG |
SkDebugf("computed quadratics given\n"); |
SkDebugf(" {{%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", |