add two more convex hull test cases
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 13 Apr 2009 13:59:33 +0000 (15:59 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 6 May 2009 09:23:45 +0000 (11:23 +0200)
isl_test.c
test_inputs/convex12.polylib [new file with mode: 0644]
test_inputs/convex13.polylib [new file with mode: 0644]

index eadc20a..7aa2db0 100644 (file)
@@ -459,6 +459,8 @@ void test_convex_hull(struct isl_ctx *ctx)
        test_convex_hull_case(ctx, "convex9");
        test_convex_hull_case(ctx, "convex10");
        test_convex_hull_case(ctx, "convex11");
+       test_convex_hull_case(ctx, "convex12");
+       test_convex_hull_case(ctx, "convex13");
 }
 
 void test_gist_case(struct isl_ctx *ctx, const char *name)
diff --git a/test_inputs/convex12.polylib b/test_inputs/convex12.polylib
new file mode 100644 (file)
index 0000000..e476630
--- /dev/null
@@ -0,0 +1,12 @@
+3 5
+1   0    0    1    1
+1   0    1    0    1
+1  -1   -1    0   -2
+
+3 5
+1   0    0    1    2
+1   1   -1    0    0
+1   1    0    0   -1
+
+1 5
+1   0    0    1    2
diff --git a/test_inputs/convex13.polylib b/test_inputs/convex13.polylib
new file mode 100644 (file)
index 0000000..1b35912
--- /dev/null
@@ -0,0 +1,17 @@
+3 5
+1   0    0   -1    3
+1   0   -1    0    2
+1   1    1    1   -4
+
+3 5
+1   0    0    1    0
+1   1    0    0   -1
+1   1    2    0    1
+
+6 5
+1   3    2    0   -1
+1   3    0    2   -3
+1   1    0    1   -1
+1   1    1    1    0
+1   1    1    0    0
+1   1    0    0    1