Patrick Niklaus
35fac07581
Add failing test for empty hint
2016-05-04 15:24:48 +02:00
Patrick Niklaus
e470d1ae1c
Fix naming convention in RasterSource
2016-05-02 17:25:58 +02:00
Michael Krasnyk
5186b9490d
Fix syntax error position indicators in parameters queries
...
To fix #2193 prefix_length member variable has been added to ParsedURL
that is set to the length of "/service/version/profile/" prefix
when the prefix is accepted by the parser.
Also BOOST_FUSION_ADAPT_STRUCT for osrm::server::api::ParsedURL
has been moved from header to url_parser.cpp to speed up compilation
of CUs that do not use the fusion adaption.
2016-04-27 19:52:23 +02:00
Michael Krasnyk
dac2f93383
Refactoring of parameter garammars
...
* signature changed from void() to void(engine::api::Parameters&)
* performance increase due to use "static const GrammarT" and avoid
construction and destruction of grammars during parsing
* removed code duplication in inherited grammars
* rule unlimited changed to qi::lit
* added rule size_t_
* parser accepts "&geometries=" and "&overview=" and fails at "foo"
instead of "&geometries=foo" and &overview=foo
* added expectations checks for derived grammars
* changed rules qi::list(".") to character rules '.'
2016-04-23 21:15:21 +02:00
Patrick Niklaus
82df0ca766
Fix parser tests and destinations=all / sources=all
2016-04-22 11:01:15 +02:00
Daniel J. Hofmann
202bb6d3e2
Fix accidental rebase issues
2016-04-22 10:40:03 +02:00
Daniel J. Hofmann
bc514926bf
Unit test for trip across component boundaries.
...
Daniel's mental model, with updates from Patrick and staring at the code
(plugins/trip.cpp): Trip first snaps coordinates which in the case of
phantoms that are not only in small components with the same id
switches small components to big ones. Therefore we get either only
small or only big components. Only then the Tarjan SCC decomposes this.
Result: multiple subtrips only happen for islands or continents.
2016-04-22 10:40:03 +02:00
Daniel J. Hofmann
9fc16b6a83
Unit test for trip exclusively in big component
2016-04-22 10:40:03 +02:00
Daniel J. Hofmann
2125e0175d
Unit tests for special symbols in radiuses, sources, destination
2016-04-22 10:40:03 +02:00
Daniel J. Hofmann
6b5982d389
Table unit test, revealing position_index -> waypoint_index mismatch
2016-04-22 10:40:03 +02:00
Daniel J. Hofmann
a4a8aa63d4
Invalid route requests
2016-04-22 10:40:03 +02:00
Daniel J. Hofmann
bedf451952
Namespace aliases
2016-04-22 10:40:03 +02:00
Daniel J. Hofmann
93b8f1993c
Split off parameters I/O from unit tests
2016-04-22 10:40:03 +02:00
Daniel J. Hofmann
c693f4806b
Unit tests for routing / snapping across components
2016-04-22 10:40:03 +02:00
Patrick Niklaus
da6dbd2159
Revert "Removes summary from legs property"
...
This adds the summary back to the RouteLeg, it now depends on if
`steps=true`.
This reverts commit eaf9993dd9
.
2016-04-21 22:39:16 +02:00
Patrick Niklaus
3e2e10a4c3
Add unit test for tile plugin
2016-04-15 14:48:21 +02:00
karenzshea
324f1739e4
more table tests, break waypoint obj check into header file
2016-04-15 14:46:17 +02:00
karenzshea
1489662f57
start tests for table plugin
2016-04-15 14:46:17 +02:00
Moritz Kobitzsch
ae45ad1ad2
fix r-tree abort location
2016-04-14 11:40:36 +02:00
Patrick Niklaus
589767fe6d
uturns -> continue_straight
2016-04-12 23:16:02 +02:00
Daniel Patterson
43725bae89
Fix Radius Calculation for points collinear in latidue
2016-04-12 11:25:59 +02:00
Patrick Niklaus
9f515dad09
Fix tests
2016-04-09 23:04:43 +02:00
Patrick Niklaus
5052c4ae3a
Move projection function into own header and inline
2016-04-09 17:31:36 +02:00
Patrick Niklaus
4886d46d91
Use DouglasPeucker with squaredEuclideanDistance
2016-04-09 17:26:27 +02:00
Daniel J. Hofmann
45bcb22270
Fixes unit tests that relied upon wrong behavior in parsers
2016-04-08 21:03:50 +02:00
Daniel J. Hofmann
2539fd53dc
Enable unit test that should pass with fixes from this branch
2016-04-08 21:03:50 +02:00
Moritz Kobitzsch
dfd180a292
fixing unit tests
2016-04-08 11:21:14 +02:00
Dane Springmeyer
56ba2cb251
Add missing -lz to fix linking of server-tests
2016-04-08 01:52:35 +02:00
karenzshea
6033c05ff0
checks for waypoint index and route lengths
2016-04-07 22:11:28 +02:00
karenzshea
407da8bd15
start match test
2016-04-07 22:11:28 +02:00
Daniel J. Hofmann
b1ed268d0e
Start modularizing the CMake buildsystem
...
The main reason for modularizing the unit tests was to split off
libboost_unit_test_framework from the osrm toolchain binaries.
Now only the unit test binaries link against it, unblocking
binary distribution without unit test library dependencies.
I started this on v4 a couple of weeks ago and hit a -llua5 issue on
Travis. By now v5 diverged quite a bit (especially in the code that I
have to stare at for debugging the issues).
https://github.com/Project-OSRM/osrm-backend/pull/2073
Let's bring this to v5+ only.
This is blocking:
- https://github.com/Project-OSRM/osrm-backend/issues/2065
- https://github.com/Project-OSRM/osrm-backend/issues/2197#issuecomment-204864938
2016-04-06 18:36:06 +02:00
Daniel J. Hofmann
eaf9993dd9
Removes summary from legs property
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
4f1ca20dda
Do not rely on alternatives being found in unit tests
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
97401ad99a
Disable steps and alternatives by default
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
29c2a117c0
Adapts tests to case sensitive "Ok" status code.
2016-04-05 22:59:14 +02:00
Patrick Niklaus
30a9bc3179
Fix mathematical assumptions in StaticRTree
...
StaticRTree now uses projected coordinates internally. That means we can
use a euclidean distance measure (squared distance) for sorting the
query queue.
2016-04-05 22:59:14 +02:00
Lauren Budorick
49e2cb6c36
Fix raster_source + tests
2016-04-05 22:59:14 +02:00
Daniel Patterson
c47f6e2ca5
Use simpler coordinates for tests.
2016-04-05 22:59:14 +02:00
Daniel Patterson
cc09df1961
Use correct perpendicular distance measure when simplifying line geometries.
2016-04-05 22:59:14 +02:00
Moritz Kobitzsch
db26d2b2d7
fixes missing overrides in mock data facade
2016-04-05 22:59:14 +02:00
Patrick Niklaus
fda4656630
Implement re-enabling of PhantomNode directions after bearing filtering
2016-04-05 22:59:14 +02:00
Patrick Niklaus
a964bec0f8
Add route fixture test
2016-04-05 22:59:14 +02:00
Patrick Niklaus
b65ba5c394
Adapt get_osrm to EngineConfig changes
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
4025cbd555
Make extractor unit tests work again after global uturn changeset
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
3da27c06c3
Number of waypoints equals number of input coordinates
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
bc7824812b
Make test assumption failure output violation in Route unit tests
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
baf7822340
Hook up small component locations for Nearest response test
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
82ee08fcaf
Provide dummy locations from our fixed monaco dataset
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
e70f0eea02
Fix base64 test wrt. Hint no longer taking coordinate in ctor
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
8be93a0202
Adapt mock facade implementation to renamed base facade symbols
2016-04-05 22:59:14 +02:00