From 29c93859cfc7ba115fb92d576f32d4b3eff422f6 Mon Sep 17 00:00:00 2001
From: Sam Yates <halfflat@gmail.com>
Date: Thu, 25 Aug 2016 16:56:42 +0200
Subject: [PATCH] Minor fixes for PR#86 branch.

* Count tests with int not bool in `mpi_listener.hpp`
* Ytpo fix in `gathered_vector.hpp`
* Add missing include in `test_algorithms.cpp`
---
 src/communication/gathered_vector.hpp       | 2 +-
 tests/global_communication/mpi_listener.hpp | 4 ++--
 tests/unit/test_algorithms.cpp              | 1 +
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/communication/gathered_vector.hpp b/src/communication/gathered_vector.hpp
index 9c83f744..cf48192f 100644
--- a/src/communication/gathered_vector.hpp
+++ b/src/communication/gathered_vector.hpp
@@ -30,7 +30,7 @@ public:
 
     /// the number of entries in the gathered vector in partiion i
     count_type count(std::size_t i) const {
-        return partition_[i+1] - partition[i];
+        return partition_[i+1] - partition_[i];
     }
 
     /// the values in the gathered vector
diff --git a/tests/global_communication/mpi_listener.hpp b/tests/global_communication/mpi_listener.hpp
index a88aa684..e33aaebb 100644
--- a/tests/global_communication/mpi_listener.hpp
+++ b/tests/global_communication/mpi_listener.hpp
@@ -32,8 +32,8 @@ private:
     int size_;
     std::ofstream fid_;
     char buffer_[1024];
-    bool test_case_failures_;
-    bool test_case_tests_;
+    int test_case_failures_;
+    int test_case_tests_;
     int test_failures_;
 
     bool does_print() const {
diff --git a/tests/unit/test_algorithms.cpp b/tests/unit/test_algorithms.cpp
index e00da203..7c4f9a12 100644
--- a/tests/unit/test_algorithms.cpp
+++ b/tests/unit/test_algorithms.cpp
@@ -1,3 +1,4 @@
+#include <random>
 #include <vector>
 
 #include "gtest.h"
-- 
GitLab