$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r71374 - trunk/libs/geometry/test/geometries
From: bruno.lalande_at_[hidden]
Date: 2011-04-18 17:52:06
Author: bruno.lalande
Date: 2011-04-18 17:52:05 EDT (Mon, 18 Apr 2011)
New Revision: 71374
URL: http://svn.boost.org/trac/boost/changeset/71374
Log:
Added forgotten test files.
Added:
   trunk/libs/geometry/test/geometries/boost_tuple_cartesian.cpp   (contents, props changed)
   trunk/libs/geometry/test/geometries/boost_tuple_geographic.cpp   (contents, props changed)
Text files modified: 
   trunk/libs/geometry/test/geometries/Jamfile.v2 |     4 ++--                                    
   1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/geometry/test/geometries/Jamfile.v2
==============================================================================
--- trunk/libs/geometry/test/geometries/Jamfile.v2	(original)
+++ trunk/libs/geometry/test/geometries/Jamfile.v2	2011-04-18 17:52:05 EDT (Mon, 18 Apr 2011)
@@ -15,8 +15,8 @@
     [ run boost_fusion.cpp ]
     [ run boost_polygon.cpp ] 
     [ run boost_range.cpp ]
-    #[ run boost_tuple_cartesian.cpp ]
-    #[ run boost_tuple_geographic.cpp ]
+    [ run boost_tuple_cartesian.cpp ]
+    [ run boost_tuple_geographic.cpp ]
     [ run box.cpp ]
     #[ compile-fail custom_linestring.cpp
     #    : # requirements
Added: trunk/libs/geometry/test/geometries/boost_tuple_cartesian.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/geometry/test/geometries/boost_tuple_cartesian.cpp	2011-04-18 17:52:05 EDT (Mon, 18 Apr 2011)
@@ -0,0 +1,35 @@
+// Boost.Geometry (aka GGL, Generic Geometry Library)
+// Unit Test
+
+// Copyright (c) 2008-2011 Bruno Lalande, Paris, France.
+
+// Use, modification and distribution is subject to the Boost Software License,
+// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+
+#include <geometry_test_common.hpp>
+#include <boost/geometry/geometries/geometries.hpp>
+#include <boost/geometry/geometries/adapted/tuple_cartesian.hpp>
+#include <boost/geometry/algorithms/distance.hpp>
+#include <boost/geometry/strategies/strategies.hpp>
+
+#include <iostream>
+
+template <typename P>
+void test_all()
+{
+    P p1, p2;
+    bg::distance(p1, p2);
+}
+
+int test_main(int, char* [])
+{
+    test_all<boost::tuple<float> >();
+    test_all<boost::tuple<int, int> >();
+    test_all<boost::tuple<double, double, double> >();
+    test_all<boost::tuple<float, float, float, float> >();
+    test_all<boost::tuple<float, float, float, float, float> >();
+
+    return 0;
+}
Added: trunk/libs/geometry/test/geometries/boost_tuple_geographic.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/geometry/test/geometries/boost_tuple_geographic.cpp	2011-04-18 17:52:05 EDT (Mon, 18 Apr 2011)
@@ -0,0 +1,36 @@
+// Boost.Geometry (aka GGL, Generic Geometry Library)
+// Unit Test
+
+// Copyright (c) 2008-2011 Bruno Lalande, Paris, France.
+
+// Use, modification and distribution is subject to the Boost Software License,
+// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+
+#include <geometry_test_common.hpp>
+#include <boost/geometry/geometries/geometries.hpp>
+#include <boost/geometry/geometries/adapted/tuple_geographic.hpp>
+#include <boost/geometry/algorithms/distance.hpp>
+#include <boost/geometry/strategies/strategies.hpp>
+
+#include <iostream>
+
+template <typename P>
+void test_all()
+{
+    P p1, p2;
+// TODO do something applicable for geographic point types
+//    bg::distance(p1, p2);
+}
+
+int test_main(int, char* [])
+{
+    test_all<boost::tuple<float> >();
+    test_all<boost::tuple<int, int> >();
+    test_all<boost::tuple<double, double, double> >();
+    test_all<boost::tuple<float, float, float, float> >();
+    test_all<boost::tuple<float, float, float, float, float> >();
+
+    return 0;
+}