Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76475 - in trunk/libs/geometry/test_extensions: arithmetic gis/latlong gis/projections
From: barend.gehrels_at_[hidden]
Date: 2012-01-13 16:53:30


Author: barendgehrels
Date: 2012-01-13 16:53:29 EST (Fri, 13 Jan 2012)
New Revision: 76475
URL: http://svn.boost.org/trac/boost/changeset/76475

Log:
Updated/fixed test_extensions
Text files modified:
   trunk/libs/geometry/test_extensions/arithmetic/cross_product.cpp | 12 ++++++------
   trunk/libs/geometry/test_extensions/gis/latlong/andoyer.cpp | 4 ++--
   trunk/libs/geometry/test_extensions/gis/latlong/cross_track.cpp | 6 +++---
   trunk/libs/geometry/test_extensions/gis/latlong/vincenty.cpp | 4 ++--
   trunk/libs/geometry/test_extensions/gis/projections/projection_epsg.cpp | 12 +++++++-----
   5 files changed, 20 insertions(+), 18 deletions(-)

Modified: trunk/libs/geometry/test_extensions/arithmetic/cross_product.cpp
==============================================================================
--- trunk/libs/geometry/test_extensions/arithmetic/cross_product.cpp (original)
+++ trunk/libs/geometry/test_extensions/arithmetic/cross_product.cpp 2012-01-13 16:53:29 EST (Fri, 13 Jan 2012)
@@ -24,9 +24,9 @@
 void test_2d()
 {
     P p1;
- bg::assign(p1, 20, 30);
+ bg::assign_values(p1, 20, 30);
     P p2;
- bg::assign(p2, 45, 70);
+ bg::assign_values(p2, 45, 70);
     P c = bg::cross_product(p1, p2);
 
     typedef typename bg::coordinate_type<P>::type scalar_type;
@@ -37,9 +37,9 @@
 void test_3d()
 {
     P p1;
- bg::assign(p1, 20, 30, 10);
+ bg::assign_values(p1, 20, 30, 10);
     P p2;
- bg::assign(p2, 45, 70, 20);
+ bg::assign_values(p2, 45, 70, 20);
     P c = bg::cross_product(p1, p2);
 
     typedef typename bg::coordinate_type<P>::type scalar_type;
@@ -53,9 +53,9 @@
 void test_4d()
 {
     P p1;
- bg::assign(p1, 20, 30, 10, 15);
+ bg::assign_values(p1, 20, 30, 10, 15);
     P p2;
- bg::assign(p2, 45, 70, 20, 35);
+ bg::assign_values(p2, 45, 70, 20, 35);
     P c = bg::cross_product(p1, p2);
 }
 #endif

Modified: trunk/libs/geometry/test_extensions/gis/latlong/andoyer.cpp
==============================================================================
--- trunk/libs/geometry/test_extensions/gis/latlong/andoyer.cpp (original)
+++ trunk/libs/geometry/test_extensions/gis/latlong/andoyer.cpp 2012-01-13 16:53:29 EST (Fri, 13 Jan 2012)
@@ -43,8 +43,8 @@
 
     P1 p1, p2;
 
- bg::assign(p1, lon1, lat1);
- bg::assign(p2, lon2, lat2);
+ bg::assign_values(p1, lon1, lat1);
+ bg::assign_values(p2, lon2, lat2);
 
     BOOST_CHECK_CLOSE(andoyer.apply(p1, p2), return_type(1000.0 * expected_km), 0.001);
 }

Modified: trunk/libs/geometry/test_extensions/gis/latlong/cross_track.cpp
==============================================================================
--- trunk/libs/geometry/test_extensions/gis/latlong/cross_track.cpp (original)
+++ trunk/libs/geometry/test_extensions/gis/latlong/cross_track.cpp 2012-01-13 16:53:29 EST (Fri, 13 Jan 2012)
@@ -58,9 +58,9 @@
     //typedef bg::strategy::distance::andoyer<Point, Point> andoyer_type;
 
     Point p1, p2, p3;
- bg::assign(p1, lon1, lat1);
- bg::assign(p2, lon2, lat2);
- bg::assign(p3, lon3, lat3);
+ bg::assign_values(p1, lon1, lat1);
+ bg::assign_values(p2, lon2, lat2);
+ bg::assign_values(p3, lon3, lat3);
 
     strategy_type strategy;
     return_type d = strategy.apply(p1, p2, p3);

Modified: trunk/libs/geometry/test_extensions/gis/latlong/vincenty.cpp
==============================================================================
--- trunk/libs/geometry/test_extensions/gis/latlong/vincenty.cpp (original)
+++ trunk/libs/geometry/test_extensions/gis/latlong/vincenty.cpp 2012-01-13 16:53:29 EST (Fri, 13 Jan 2012)
@@ -43,8 +43,8 @@
 
     P1 p1, p2;
 
- bg::assign(p1, lon1, lat1);
- bg::assign(p2, lon2, lat2);
+ bg::assign_values(p1, lon1, lat1);
+ bg::assign_values(p2, lon2, lat2);
 
     BOOST_CHECK_CLOSE(vincenty.apply(p1, p2), return_type(1000.0) * return_type(expected_km), 0.001);
 }

Modified: trunk/libs/geometry/test_extensions/gis/projections/projection_epsg.cpp
==============================================================================
--- trunk/libs/geometry/test_extensions/gis/projections/projection_epsg.cpp (original)
+++ trunk/libs/geometry/test_extensions/gis/projections/projection_epsg.cpp 2012-01-13 16:53:29 EST (Fri, 13 Jan 2012)
@@ -80,14 +80,16 @@
 
 int test_main(int, char* [])
 {
+ // Commented out most the types because otherwise it cannot be linked
     //test_all<int[2]>();
- test_all<float[2]>();
- test_all<double[2]>();
- test_all<test::test_point>();
+ //test_all<float[2]>();
+ //test_all<double[2]>();
+ //test_all<test::test_point>();
     //test_all<bg::model::d2::point_xy<int> >();
- test_all<bg::model::d2::point_xy<float> >();
+ ////test_all<bg::model::d2::point_xy<float> >();
+ ////test_all<bg::model::d2::point_xy<long double> >();
+
     test_all<bg::model::d2::point_xy<double> >();
- test_all<bg::model::d2::point_xy<long double> >();
 
     return 0;
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk