blob: e41135e803f1f010d67a2edf72648373df416c72 [file] [log] [blame]
caryclark@google.com07393ca2013-04-08 11:47:37 +00001/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
Mike Kleinc0bd9f92019-04-23 12:05:21 -05007#include "src/pathops/SkPathOpsCubic.h"
8#include "tests/PathOpsTestCommon.h"
9#include "tests/Test.h"
caryclark@google.com07393ca2013-04-08 11:47:37 +000010
caryclarka35ab3e2016-10-20 08:32:18 -070011static const CubicPts hullTests[] = {
caryclark1049f122015-04-20 08:31:59 -070012{{{2.6250000819563866, 2.3750000223517418}, {2.833333432674408, 2.3333333432674408}, {3.1111112236976624, 2.3333333134651184}, {3.4074075222015381, 2.3333332538604736}}},
13};
14
15static const size_t hullTests_count = SK_ARRAY_COUNT(hullTests);
16
17DEF_TEST(PathOpsCubicHull, reporter) {
18 for (size_t index = 0; index < hullTests_count; ++index) {
caryclarka35ab3e2016-10-20 08:32:18 -070019 const CubicPts& c = hullTests[index];
20 SkDCubic cubic;
21 cubic.debugSet(c.fPts);
caryclark1049f122015-04-20 08:31:59 -070022 char order[4];
23 cubic.convexHull(order);
24 }
25}