diff --git a/test/algorithms/densify.cpp b/test/algorithms/densify.cpp
index b262c9667..7c78f7ab7 100644
--- a/test/algorithms/densify.cpp
+++ b/test/algorithms/densify.cpp
@@ -174,6 +174,10 @@ void test_all()
typedef bg::model::polygon
poly_t;
typedef bg::model::multi_polygon mpoly_t;
+ typedef bg::model::ring oring_t;
+ typedef bg::model::polygon
opoly_t;
+ typedef bg::model::multi_polygon ompoly_t;
+
test_linear("LINESTRING(4 -4, 4 -1)");
test_linear("LINESTRING(4 4, 4 1)");
test_linear("LINESTRING(0 0, 180 0)");
@@ -182,9 +186,16 @@ void test_all()
test_linear("LINESTRING(1 1, 2 2, 4 2)");
test_linear("MULTILINESTRING((1 1, 2 2),(2 2, 4 2))");
- test_linear("POLYGON((1 1, 1 2, 2 2, 1 1))");
- test_linear("POLYGON((1 1, 1 4, 4 4, 4 1, 1 1),(1 1, 2 2, 2 3, 1 1))");
- test_linear("MULTIPOLYGON(((1 1, 1 4, 4 4, 4 1, 1 1),(1 1, 2 2, 2 3, 1 1)),((4 4, 5 5, 5 4, 4 4)))");
+ test_areal("POLYGON((1 1, 1 2, 2 2, 1 1))");
+ test_areal("POLYGON((1 1, 1 4, 4 4, 4 1, 1 1),(1 1, 2 2, 2 3, 1 1))");
+ test_areal("MULTIPOLYGON(((1 1, 1 4, 4 4, 4 1, 1 1),(1 1, 2 2, 2 3, 1 1)),((4 4, 5 5, 5 4, 4 4)))");
+
+ test_areal("POLYGON((1 1, 1 2, 2 2))");
+ test_areal("POLYGON((1 1, 1 4, 4 4, 4 1),(1 1, 2 2, 2 3))");
+ test_areal("MULTIPOLYGON(((1 1, 1 4, 4 4, 4 1),(1 1, 2 2, 2 3)),((4 4, 5 5, 5 4)))");
+
+ test_areal("POLYGON((0 0,0 40,40 40,40 0,0 0))");
+ test_areal("POLYGON((0 0,0 40,40 40,40 0))");
}
int test_main(int, char* [])