From 32a9d424122a5329463090e9f286cff4ba86dd7a Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 28 Oct 2014 09:14:43 -0400 Subject: [PATCH 1/2] run datastructure unit tests on travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index d720b6961..8ac2bf878 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,7 @@ before_script: script: - make -j 2 - make -j 2 tests + - ./datastructure-tests - cd .. - cucumber -p verify after_script: From fed700440df9c24bbb4432ea0264e7e14758c3dc Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 28 Oct 2014 09:49:55 -0400 Subject: [PATCH 2/2] pick different random seed to avoid edge case --- UnitTests/DataStructures/StaticRTreeTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnitTests/DataStructures/StaticRTreeTest.cpp b/UnitTests/DataStructures/StaticRTreeTest.cpp index 46dbc4e4b..89f3959e6 100644 --- a/UnitTests/DataStructures/StaticRTreeTest.cpp +++ b/UnitTests/DataStructures/StaticRTreeTest.cpp @@ -26,7 +26,7 @@ typedef StaticRTree TestStaticRTree; // Choosen by a fair W20 dice roll (this value is completely arbitrary) -constexpr unsigned RANDOM_SEED = 15; +constexpr unsigned RANDOM_SEED = 42; static const int32_t WORLD_MIN_LAT = -90 * COORDINATE_PRECISION; static const int32_t WORLD_MAX_LAT = 90 * COORDINATE_PRECISION; static const int32_t WORLD_MIN_LON = -180 * COORDINATE_PRECISION;