blob: 5b05952c84cf045d1cba798dc291cd8da9b6b663 [file] [log] [blame]
reed@android.comd8730ea2009-02-27 22:06:06 +00001#include "Test.h"
2#include "SkGeometry.h"
3
4static void TestGeometry(skiatest::Reporter* reporter) {
5 SkPoint pts[3], dst[5];
6
7 pts[0].set(0, 0);
8 pts[1].set(100, 50);
9 pts[2].set(0, 100);
10
11 int count = SkChopQuadAtMaxCurvature(pts, dst);
12 REPORTER_ASSERT(reporter, count == 1 || count == 2);
13}
14
15#include "TestClassDef.h"
16DEFINE_TESTCLASS("Geometry", GeometryTestClass, TestGeometry)