Commit Graph

5261 Commits

Author SHA1 Message Date
Patrick Niklaus
306b0610a2 Add route fixture test 2016-03-31 18:58:52 +02:00
Patrick Niklaus
7e5274e6e6 Adapt get_osrm to EngineConfig changes 2016-03-31 18:58:52 +02:00
Patrick Niklaus
f998cb8c54 Make tests build by default 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
324cfaac83 Make extractor unit tests work again after global uturn changeset 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
dbcc86c59d Number of waypoints equals number of input coordinates 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
22cd9505ef Make test assumption failure output violation in Route unit tests 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
3e1b7ad6d5 Hook up small component locations for Nearest response test 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
1c41a6b1e8 Provide dummy locations from our fixed monaco dataset 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
776c0d0ae2 Fixes integer overflow due to fixed / floating mismatch in coordinate interpolation 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
a86f09a1f7 Makes switching between floating and fixed coordinates safe wrt. overflows 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
cecb0c547b Makes viewport immune to inf and nans 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
f8bd22dc6f Fix base64 test wrt. Hint no longer taking coordinate in ctor 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
a4ccc59833 Adapt mock facade implementation to renamed base facade symbols 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
d774a875cd Provide implementation for all pure virtual base member functions in mock facade 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
bfde117ff5 Mismatched tag in fwd decl 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
4bb7e734f9 Make unit tests compile again after rebasing 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
f16a865420 Make Tile plugin validate its parameters, fixes #2109 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
c087a11659 Make Route plugin validate its parameters 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
de1f1b8ab3 Makes Nearest plugin adhere to v5 spec for precondition violations, fixes #2108 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
665f93c92f Unit test for Route service; some failing where v5 spec is unclear 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
e1d9d9c218 Unit tests for Tile service; plugin needs improvements: see #2109 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
09c40db4ad Unit tests for Nearest service; one test failing: see #2108 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
cb212a7315 Makes table plugin adhere to v5 spec for limit violations, fixes #2100 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
9dbd437233 Adapts our Travis config to continuously run the library unit tests 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
fea6c2731a Tests for config level constraints; table failing: see #2100 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
1d11701034 Initial unit tests setup for typed libosrm services 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
28fe1600ae Puts auto-generated monaco test files on gitignore 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
7ccb3a6327 Library tests build system integration 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
5edc332e49 Add guidance assembly unit test stub 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
e68c057139 Sentinel spelling 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
943a2d4ab7 Explicitely construct coordinate and phantom node 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
5b00bb81e3 Adapts all unit tests and benchmarks to compile under v5 again 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
e050f15cf8 Provide correct Base64 implementation.
Phew, this was painful. Turns out most hints out there on how to use the
Boost serialization iterators are wrong. Here's why:

    transform_width<6, 8>

needs an input stream of length: common multiple of 6 and 8.

That is, the padding needs to happen _before_ using the provided
iterators, otherwise the behavior is undefined!

See: http://www.boost.org/doc/libs/1_60_0/boost/archive/iterators/transform_width.hpp

Thanks @mokob for pointing that out to me!

We also need to manually add as many padding chars "=" to the encoded
result as many bytes we had to append to the input to conform to the
rule above.

Decoding then knows the number of padding chars by counting for "=" and
then using it in order to split off the last bytes from the decoded
result.
2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
0acf7f7400 Adds round trip tests for RFC 4648 Test Vectors and equality checks 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
9abfb7ea3b Makes hint Equatable and Printable for tests 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
8a4551500d Make Hint encoding safe for passing them as GET parameter in URLs
Thanks @TheMarex for flagging this!
2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
d0c534e5fa Completely re-write base64 logic, make API suck less in doing so 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
822bb97a5f RFC 4648 Test Vectors 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
6cd3b8bc00 Object Encoder -> Base64, kill false dependencies while doing so 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
a145520b5b Adapts Hint encoding and decoding to new fixed data facade 2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
3d75d15361 Formats parameter parser unit tests 2016-03-31 18:58:52 +02:00
Patrick Niklaus
8dd3fe3173 Fix hint size 2016-03-31 18:58:52 +02:00
Patrick Niklaus
0bb1b04170 Always safe the absolute path to .fileIndex 2016-03-31 18:58:52 +02:00
Patrick Niklaus
11629e0538 Install storage_config.hpp 2016-03-31 18:58:52 +02:00
Aleksei Potov
6462ea14a2 compilation error on debian jessie with boost 1.54 2016-03-31 18:58:52 +02:00
Daniel Patterson
993c4796c1 Fix boost geometry constructor.
Versions older than 1.58 don't support the initializer-list form.
2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
b11d3ad1ba syncronize geometry and steps after post-processing 2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
9681d662cb added list of intersections to the step-maneuver, not in api so far 2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
6a5ffc126a fix initial maneuvers 2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
7bf2cb1917 post processing moved onto route-steps, looses sync with geometry segments 2016-03-31 18:58:52 +02:00