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
Daniel Patterson
5b33efeecc
Fixes #2152 - weight vector needed to be reversed, and start index was wrong.
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
5829bbe22d
Move Centroid to coordinate_calculation
2016-04-05 22:59:14 +02:00
Patrick Niklaus
f4cfde719d
Round integers to remove fake precision
2016-04-05 22:59:14 +02:00
Patrick Niklaus
1fd66f55c1
Fix problem with uturns=true
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
Patrick Niklaus
d51eefa1c4
Make tests build by default
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
51d153a5f7
Fixes integer overflow due to fixed / floating mismatch in coordinate interpolation
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
df608e8b43
Makes switching between floating and fixed coordinates safe wrt. overflows
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
8e477437a6
Makes viewport immune to inf and nans
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
Daniel J. Hofmann
d4f7f19a22
Provide implementation for all pure virtual base member functions in mock facade
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
4441381042
Mismatched tag in fwd decl
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
61c9c69718
Make unit tests compile again after rebasing
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
5beaab97da
Make Tile plugin validate its parameters, fixes #2109
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
843a4b8eae
Make Route plugin validate its parameters
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
9ec46222e3
Makes Nearest plugin adhere to v5 spec for precondition violations, fixes #2108
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
210da11fbb
Unit test for Route service; some failing where v5 spec is unclear
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
ee61ae360d
Unit tests for Tile service; plugin needs improvements: see #2109
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
890e0f4995
Unit tests for Nearest service; one test failing: see #2108
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
224c66e0dc
Makes table plugin adhere to v5 spec for limit violations, fixes #2100
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
88052cd194
Adapts our Travis config to continuously run the library unit tests
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
c22453f24a
Tests for config level constraints; table failing: see #2100
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
099a805260
Initial unit tests setup for typed libosrm services
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
7ed474af8d
Puts auto-generated monaco test files on gitignore
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
9d893d6d4d
Library tests build system integration
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
e55af0c274
Add guidance assembly unit test stub
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
803fbf2541
Sentinel spelling
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
061b2b63e9
Explicitely construct coordinate and phantom node
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
1486098065
Adapts all unit tests and benchmarks to compile under v5 again
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
0f0db4c823
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-04-05 22:58:32 +02:00
Daniel J. Hofmann
c3e7e96dce
Adds round trip tests for RFC 4648 Test Vectors and equality checks
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
3c5f6bd8ac
Makes hint Equatable and Printable for tests
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
b6b59e5c08
Make Hint encoding safe for passing them as GET parameter in URLs
...
Thanks @TheMarex for flagging this!
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
a7aa27c87c
Completely re-write base64 logic, make API suck less in doing so
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
735b325d74
RFC 4648 Test Vectors
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
f948380fa2
Object Encoder -> Base64, kill false dependencies while doing so
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
79cf1880fc
Adapts Hint encoding and decoding to new fixed data facade
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
ca130e1dc4
Formats parameter parser unit tests
2016-04-05 22:58:32 +02:00
Patrick Niklaus
d67ce81438
Fix hint size
2016-04-05 22:58:32 +02:00