]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/geometry/test/algorithms/for_each.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / geometry / test / algorithms / for_each.cpp
index 09e94fa04e41cc1777580b37969dbc301c17f5ec..5e8be122753cc018fdab9808b47d264a5761d69d 100644 (file)
@@ -42,6 +42,18 @@ void test_all()
             , std::sqrt(2.0)
             , "LINESTRING(10 1,2 2)"
         );
+    test_geometry<bg::model::linestring<P> >
+        (
+            "LINESTRING EMPTY"
+
+            , 0
+            , "LINESTRING()"
+            , "LINESTRING()"
+
+            , ""
+            , 0
+            , "LINESTRING()"
+        );
     test_geometry<bg::model::ring<P> >
         (
             "POLYGON((1 1,1 4,4 4,4 1,1 1))"
@@ -54,6 +66,18 @@ void test_all()
             , 4 * 3.0
             , "POLYGON((10 1,10 4,4 4,4 1,1 1))"
         );
+    test_geometry<bg::model::ring<P> >
+        (
+            "POLYGON EMPTY"
+
+            , 0
+            , "POLYGON(())"
+            , "POLYGON(())"
+
+            , ""
+            , 0
+            , "POLYGON(())"
+        );
     test_geometry<bg::model::ring<P, true, false> > // open ring
         (
             "POLYGON((1 1,1 4,4 4,4 1))"