]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/geometry/test/algorithms/num_segments.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / geometry / test / algorithms / num_segments.cpp
index f6f0ddbf1898e088cb89231800cafc1531880d6f..7b1143d7c8b89cdb1e7d27b30a77c8bebbb34186 100644 (file)
@@ -1,9 +1,10 @@
 // Boost.Geometry (aka GGL, Generic Geometry Library)
 // Unit Test
 
-// Copyright (c) 2014, Oracle and/or its affiliates.
+// Copyright (c) 2014-2021, Oracle and/or its affiliates.
 
 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
+// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
 
 // Licensed under the Boost Software License version 1.0.
 // http://www.boost.org/users/license.html
@@ -289,3 +290,16 @@ BOOST_AUTO_TEST_CASE( test_variant )
     variant_geometry = p_closed;
     tester::apply(variant_geometry, 4);
 }
+
+BOOST_AUTO_TEST_CASE( test_geometry_collection )
+{
+    using variant = boost::variant<linestring, polygon_cw_closed>;
+    using geometry_collection = bg::model::geometry_collection<variant>;
+
+    using tester = test_num_segments<geometry_collection>;
+
+    geometry_collection gc;
+    bg::read_wkt("GEOMETRYCOLLECTION(LINESTRING(0 0,1 1,2 2),POLYGON((0 0,0 1,1 1,1 0,0 0)))", gc);
+
+    tester::apply(gc, 6);
+}