From 798906441ad8f84e38060c99b45dfb0e69a94ce8 Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Wed, 27 Jul 2016 16:18:00 +0200 Subject: [PATCH] Rename concepts in unit tests --- test/algorithms/distance/distance.cpp | 2 +- test/algorithms/test_simplify.hpp | 6 +++--- test/concepts/function_asserting_a_point.hpp | 4 ++-- test/concepts/function_requiring_a_point.hpp | 4 ++-- test/concepts/linestring_concept.cpp | 4 ++-- test/concepts/point_concept_checker.cpp | 4 ++-- ...int_geographic_custom_with_wrong_units.cpp | 2 +- .../point_geographic_with_wrong_units.cpp | 2 +- ...oint_spherical_custom_with_wrong_units.cpp | 2 +- .../point_well_formed_non_cartesian.cpp | 20 +++++++++---------- test/geometries/adapted.cpp | 6 +++--- test/geometries/boost_polygon.cpp | 6 +++--- test/geometries/concepts/check.cpp | 4 ++-- test/geometries/custom_linestring.cpp | 4 ++-- test/geometries/segment.cpp | 6 +++--- test/strategies/andoyer.cpp | 2 +- test/strategies/cross_track.cpp | 2 +- test/strategies/haversine.cpp | 2 +- test/strategies/pythagoras.cpp | 2 +- test/strategies/pythagoras_point_box.cpp | 2 +- test/strategies/test_projected_point.hpp | 6 +++--- test/strategies/test_within.hpp | 2 +- test/strategies/thomas.cpp | 2 +- test/strategies/vincenty.cpp | 2 +- 24 files changed, 49 insertions(+), 49 deletions(-) diff --git a/test/algorithms/distance/distance.cpp b/test/algorithms/distance/distance.cpp index 2f9c74c39..76471557f 100644 --- a/test/algorithms/distance/distance.cpp +++ b/test/algorithms/distance/distance.cpp @@ -76,7 +76,7 @@ void test_distance_point() { // Test custom strategy - BOOST_CONCEPT_ASSERT( (bg::concept::PointDistanceStrategy) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::PointDistanceStrategy) ); typedef typename services::return_type::type cab_return_type; BOOST_MPL_ASSERT((boost::is_same::type>)); diff --git a/test/algorithms/test_simplify.hpp b/test/algorithms/test_simplify.hpp index a7b9ce6af..d80da5653 100644 --- a/test/algorithms/test_simplify.hpp +++ b/test/algorithms/test_simplify.hpp @@ -128,7 +128,7 @@ void test_geometry(std::string const& wkt, check_geometry(v, expected, distance); - BOOST_CONCEPT_ASSERT( (bg::concept::SimplifyStrategy) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::SimplifyStrategy) ); check_geometry(geometry, expected, distance, dp()); check_geometry(v, expected, distance, dp()); @@ -155,7 +155,7 @@ void test_geometry(std::string const& wkt, less_comparator > douglass_peucker_with_less; - BOOST_CONCEPT_ASSERT( (bg::concept::SimplifyStrategy) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::SimplifyStrategy) ); check_geometry(geometry, expected, distance, douglass_peucker_with_less(less)); check_geometry(v, expected, distance, douglass_peucker_with_less(less)); @@ -172,7 +172,7 @@ void test_geometry(std::string const& wkt, bg::read_wkt(wkt, geometry); boost::variant v(geometry); - BOOST_CONCEPT_ASSERT( (bg::concept::SimplifyStrategy::type>) ); check_geometry(geometry, expected, distance, strategy); diff --git a/test/concepts/function_asserting_a_point.hpp b/test/concepts/function_asserting_a_point.hpp index 8ff84d449..802d19852 100644 --- a/test/concepts/function_asserting_a_point.hpp +++ b/test/concepts/function_asserting_a_point.hpp @@ -20,8 +20,8 @@ namespace test template void function_asserting_a_point(P& p1, const CP& p2) { - BOOST_CONCEPT_ASSERT((bg::concept::Point

)); - BOOST_CONCEPT_ASSERT((bg::concept::ConstPoint

)); + BOOST_CONCEPT_ASSERT((bg::concepts::Point

)); + BOOST_CONCEPT_ASSERT((bg::concepts::ConstPoint

)); bg::get<0>(p1) = bg::get<0>(p2); } diff --git a/test/concepts/function_requiring_a_point.hpp b/test/concepts/function_requiring_a_point.hpp index 77e7bdd12..d8628e940 100644 --- a/test/concepts/function_requiring_a_point.hpp +++ b/test/concepts/function_requiring_a_point.hpp @@ -19,8 +19,8 @@ namespace test template inline void function_requiring_a_point(P& p1, const C& p2) { - BOOST_CONCEPT_ASSERT((bg::concept::Point

)); - BOOST_CONCEPT_ASSERT((bg::concept::ConstPoint)); + BOOST_CONCEPT_ASSERT((bg::concepts::Point

)); + BOOST_CONCEPT_ASSERT((bg::concepts::ConstPoint)); bg::set<0>(p1, bg::get<0>(p2)); } diff --git a/test/concepts/linestring_concept.cpp b/test/concepts/linestring_concept.cpp index 9b202f1e2..06f3dfcf9 100644 --- a/test/concepts/linestring_concept.cpp +++ b/test/concepts/linestring_concept.cpp @@ -31,8 +31,8 @@ template void test_linestring() { - BOOST_CONCEPT_ASSERT( (bg::concept::Linestring) ); - BOOST_CONCEPT_ASSERT( (bg::concept::ConstLinestring) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::Linestring) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::ConstLinestring) ); Geometry geometry; typedef typename bg::point_type::type P; diff --git a/test/concepts/point_concept_checker.cpp b/test/concepts/point_concept_checker.cpp index 0750972f4..ea51a2e96 100644 --- a/test/concepts/point_concept_checker.cpp +++ b/test/concepts/point_concept_checker.cpp @@ -71,6 +71,6 @@ template <> struct access int main() { - boost::geometry::concept::check(); - boost::geometry::concept::check(); + boost::geometry::concepts::check(); + boost::geometry::concepts::check(); } diff --git a/test/concepts/point_geographic_custom_with_wrong_units.cpp b/test/concepts/point_geographic_custom_with_wrong_units.cpp index f2985b841..5ac6e03e7 100644 --- a/test/concepts/point_geographic_custom_with_wrong_units.cpp +++ b/test/concepts/point_geographic_custom_with_wrong_units.cpp @@ -20,7 +20,7 @@ struct dummy {}; int main() { - bg::concept::check + bg::concepts::check < ro_lon_lat_point > const >(); diff --git a/test/concepts/point_geographic_with_wrong_units.cpp b/test/concepts/point_geographic_with_wrong_units.cpp index ab5fdc704..9ea423181 100644 --- a/test/concepts/point_geographic_with_wrong_units.cpp +++ b/test/concepts/point_geographic_with_wrong_units.cpp @@ -20,7 +20,7 @@ namespace bg = boost::geometry; int main() { - bg::concept::check + bg::concepts::check < bg::model::point > >(); diff --git a/test/concepts/point_spherical_custom_with_wrong_units.cpp b/test/concepts/point_spherical_custom_with_wrong_units.cpp index f5c5bb573..4a44f3236 100644 --- a/test/concepts/point_spherical_custom_with_wrong_units.cpp +++ b/test/concepts/point_spherical_custom_with_wrong_units.cpp @@ -19,7 +19,7 @@ namespace bg = boost::geometry; int main() { - bg::concept::check + bg::concepts::check < rw_lon_lat_point > >(); diff --git a/test/concepts/point_well_formed_non_cartesian.cpp b/test/concepts/point_well_formed_non_cartesian.cpp index e6817adb3..adbc14ce0 100644 --- a/test/concepts/point_well_formed_non_cartesian.cpp +++ b/test/concepts/point_well_formed_non_cartesian.cpp @@ -30,19 +30,19 @@ inline void test_coordinate_system() typedef rw_lon_lat_point rw_int_point; typedef ro_lon_lat_point ro_int_point; - bg::concept::check(); - bg::concept::check(); + bg::concepts::check(); + bg::concepts::check(); - bg::concept::check(); - bg::concept::check(); + bg::concepts::check(); + bg::concepts::check(); - bg::concept::check(); - bg::concept::check(); - bg::concept::check(); + bg::concepts::check(); + bg::concepts::check(); + bg::concepts::check(); - bg::concept::check(); - bg::concept::check(); - bg::concept::check(); + bg::concepts::check(); + bg::concepts::check(); + bg::concepts::check(); } diff --git a/test/geometries/adapted.cpp b/test/geometries/adapted.cpp index 4dd8c8923..173314396 100644 --- a/test/geometries/adapted.cpp +++ b/test/geometries/adapted.cpp @@ -61,11 +61,11 @@ template void test_geometry(G const& geometry, std::size_t expected_size = 0) { #if defined(BOOST_GEOMETRY_TEST_RING) - BOOST_CONCEPT_ASSERT( (bg::concept::ConstRing) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::ConstRing) ); #elif defined(BOOST_GEOMETRY_TEST_MULTI_POINT) - BOOST_CONCEPT_ASSERT( (bg::concept::ConstMultiPoint) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::ConstMultiPoint) ); #else - BOOST_CONCEPT_ASSERT( (bg::concept::ConstLinestring) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::ConstLinestring) ); #endif typedef typename bg::point_type::type P; diff --git a/test/geometries/boost_polygon.cpp b/test/geometries/boost_polygon.cpp index 42dc2c5a8..c535b22d1 100644 --- a/test/geometries/boost_polygon.cpp +++ b/test/geometries/boost_polygon.cpp @@ -73,7 +73,7 @@ template void test_coordinate_type() { // 1a: Check if Boost.Polygon's point fulfills Boost.Geometry's point concept - bg::concept::check >(); + bg::concepts::check >(); // 1b: use a Boost.Polygon point in Boost.Geometry, calc. distance with two point types boost::polygon::point_data boost_polygon_point(1, 2); @@ -84,7 +84,7 @@ void test_coordinate_type() 2 * std::sqrt(2.0)); // 2a: Check if Boost.Polygon's box fulfills Boost.Geometry's box concept - bg::concept::check >(); + bg::concepts::check >(); // 2b: use a Boost.Polygon rectangle in Boost.Geometry, compare with boxes boost::polygon::rectangle_data boost_polygon_box; @@ -99,7 +99,7 @@ void test_coordinate_type() BOOST_CHECK_EQUAL(boost_polygon_area, boost_polygon_area_by_boost_polygon); // 3a: Check if Boost.Polygon's polygon fulfills Boost.Geometry's ring concept - bg::concept::check >(); + bg::concepts::check >(); // 3b: use a Boost.Polygon polygon (ring) boost::polygon::polygon_data boost_polygon_ring; diff --git a/test/geometries/concepts/check.cpp b/test/geometries/concepts/check.cpp index c4996a7a5..07b344295 100644 --- a/test/geometries/concepts/check.cpp +++ b/test/geometries/concepts/check.cpp @@ -71,6 +71,6 @@ template <> struct access int main() { - bg::concept::check(); - bg::concept::check(); + bg::concepts::check(); + bg::concepts::check(); } diff --git a/test/geometries/custom_linestring.cpp b/test/geometries/custom_linestring.cpp index 35315503a..66feef665 100644 --- a/test/geometries/custom_linestring.cpp +++ b/test/geometries/custom_linestring.cpp @@ -80,8 +80,8 @@ namespace boost { namespace geometry { namespace traits { template void test_linestring() { - BOOST_CONCEPT_ASSERT( (bg::concept::Linestring) ); - BOOST_CONCEPT_ASSERT( (bg::concept::ConstLinestring) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::Linestring) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::ConstLinestring) ); G geometry; typedef typename bg::point_type::type P; diff --git a/test/geometries/segment.cpp b/test/geometries/segment.cpp index c6cef3e10..dcbb2ed18 100644 --- a/test/geometries/segment.cpp +++ b/test/geometries/segment.cpp @@ -49,8 +49,8 @@ void test_all() BOOST_CHECK_EQUAL(&s.second, &p2); // Compilation tests, all things should compile. - BOOST_CONCEPT_ASSERT( (bg::concept::ConstSegment) ); - BOOST_CONCEPT_ASSERT( (bg::concept::Segment) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::ConstSegment) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::Segment) ); typedef typename bg::coordinate_type::type T; typedef typename bg::point_type::type SP; @@ -59,7 +59,7 @@ void test_all() //std::cout << sizeof(typename coordinate_type::type) << std::endl; typedef bg::model::referring_segment

refseg_t; - //BOOST_CONCEPT_ASSERT( (concept::ConstSegment) ); + //BOOST_CONCEPT_ASSERT( (concepts::ConstSegment) ); refseg_t seg(p1, p2); diff --git a/test/strategies/andoyer.cpp b/test/strategies/andoyer.cpp index c52876073..961a3075f 100644 --- a/test/strategies/andoyer.cpp +++ b/test/strategies/andoyer.cpp @@ -79,7 +79,7 @@ void test_distance(double lon1, double lat1, double lon2, double lat2, double ex BOOST_CONCEPT_ASSERT ( - (bg::concept::PointDistanceStrategy) + (bg::concepts::PointDistanceStrategy) ); andoyer_type andoyer; diff --git a/test/strategies/cross_track.cpp b/test/strategies/cross_track.cpp index 1b02c8835..861251e4e 100644 --- a/test/strategies/cross_track.cpp +++ b/test/strategies/cross_track.cpp @@ -83,7 +83,7 @@ void test_distance( BOOST_CONCEPT_ASSERT ( - (bg::concept::PointSegmentDistanceStrategy) + (bg::concepts::PointSegmentDistanceStrategy) ); diff --git a/test/strategies/haversine.cpp b/test/strategies/haversine.cpp index 9aaae3386..b6853954d 100644 --- a/test/strategies/haversine.cpp +++ b/test/strategies/haversine.cpp @@ -43,7 +43,7 @@ struct test_distance BOOST_CONCEPT_ASSERT ( - (bg::concept::PointDistanceStrategy) + (bg::concepts::PointDistanceStrategy) ); diff --git a/test/strategies/pythagoras.cpp b/test/strategies/pythagoras.cpp index 3b81bf144..de1101e46 100644 --- a/test/strategies/pythagoras.cpp +++ b/test/strategies/pythagoras.cpp @@ -145,7 +145,7 @@ void test_services() typedef bgsd::pythagoras strategy_type; - BOOST_CONCEPT_ASSERT( (bg::concept::PointDistanceStrategy) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::PointDistanceStrategy) ); typedef typename bgsd::services::return_type::type return_type; diff --git a/test/strategies/pythagoras_point_box.cpp b/test/strategies/pythagoras_point_box.cpp index 9b1e817f3..31810e1cb 100644 --- a/test/strategies/pythagoras_point_box.cpp +++ b/test/strategies/pythagoras_point_box.cpp @@ -206,7 +206,7 @@ inline void test_services() typedef bgsd::pythagoras_point_box strategy_type; BOOST_CONCEPT_ASSERT - ( (bg::concept::PointDistanceStrategy) ); + ( (bg::concepts::PointDistanceStrategy) ); typedef typename bgsd::services::return_type < diff --git a/test/strategies/test_projected_point.hpp b/test/strategies/test_projected_point.hpp index 0abde3ced..72a0d906d 100644 --- a/test/strategies/test_projected_point.hpp +++ b/test/strategies/test_projected_point.hpp @@ -81,7 +81,7 @@ void test_services() typedef bgsd::projected_point strategy_type; - BOOST_CONCEPT_ASSERT( (bg::concept::PointSegmentDistanceStrategy) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::PointSegmentDistanceStrategy) ); typedef typename services::return_type::type return_type; @@ -140,11 +140,11 @@ void test_2d(std::string const& wkt_p, BOOST_CONCEPT_ASSERT ( - (bg::concept::PointSegmentDistanceStrategy) + (bg::concepts::PointSegmentDistanceStrategy) ); BOOST_CONCEPT_ASSERT ( - (bg::concept::PointSegmentDistanceStrategy) + (bg::concepts::PointSegmentDistanceStrategy) ); { diff --git a/test/strategies/test_within.hpp b/test/strategies/test_within.hpp index 4ceb2608e..d47080ccf 100644 --- a/test/strategies/test_within.hpp +++ b/test/strategies/test_within.hpp @@ -72,7 +72,7 @@ void test_point_in_polygon(std::string const& case_id, bool expected, bool use_within = true) { - BOOST_CONCEPT_ASSERT( (bg::concept::WithinStrategyPolygonal) ); + BOOST_CONCEPT_ASSERT( (bg::concepts::WithinStrategyPolygonal) ); bool detected = use_within ? bg::within(point, polygon, strategy) : bg::covered_by(point, polygon, strategy); diff --git a/test/strategies/thomas.cpp b/test/strategies/thomas.cpp index cac10ac51..5770dc0b1 100644 --- a/test/strategies/thomas.cpp +++ b/test/strategies/thomas.cpp @@ -52,7 +52,7 @@ void test_distance(double lon1, double lat1, double lon2, double lat2, double ex BOOST_CONCEPT_ASSERT ( - (bg::concept::PointDistanceStrategy) + (bg::concepts::PointDistanceStrategy) ); thomas_type thomas; diff --git a/test/strategies/vincenty.cpp b/test/strategies/vincenty.cpp index d49a49172..ac548641c 100644 --- a/test/strategies/vincenty.cpp +++ b/test/strategies/vincenty.cpp @@ -169,7 +169,7 @@ void test_vincenty(double lon1, double lat1, double lon2, double lat2, BOOST_CONCEPT_ASSERT( ( - bg::concept::PointDistanceStrategy) + bg::concepts::PointDistanceStrategy) ); vincenty_type vincenty(spheroid);