1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2 //
3 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
4 // Use, modification and distribution is subject to the Boost Software License,
5 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7
8
9 #include <algorithms/test_length.hpp>
10
11 #include <boost/geometry/geometries/geometries.hpp>
12 #include <boost/geometry/geometries/point_xy.hpp>
13
14 template <typename P>
test_all()15 void test_all()
16 {
17 test_geometry<bg::model::multi_linestring<bg::model::linestring<P> > >
18 ("MULTILINESTRING((0 0,3 4,4 3))", 5 + sqrt(2.0));
19 }
20
21 template <typename P>
test_empty_input()22 void test_empty_input()
23 {
24 test_empty_input(bg::model::multi_linestring<P>());
25 }
26
test_main(int,char * [])27 int test_main( int , char* [] )
28 {
29 test_all<bg::model::d2::point_xy<double> >();
30
31 #ifdef HAVE_TTMATH
32 test_all<bg::model::d2::point_xy<ttmath_big> >();
33 #endif
34
35 // test_empty_input<bg::model::d2::point_xy<int> >();
36
37 return 0;
38 }
39