From aaa684093327e1c03d6fa7783b2e873687715c76 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Thu, 16 Mar 2017 17:37:31 +0300 Subject: [PATCH] Multiset test compatibility fix --- libuavcan/test/util/multiset.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libuavcan/test/util/multiset.cpp b/libuavcan/test/util/multiset.cpp index 4bbcd79665..4d4212f7c3 100644 --- a/libuavcan/test/util/multiset.cpp +++ b/libuavcan/test/util/multiset.cpp @@ -74,7 +74,7 @@ TEST(Multiset, Basic) { using uavcan::Multiset; - static const int POOL_BLOCKS = 3; + static const int POOL_BLOCKS = 4; uavcan::PoolAllocator pool; typedef Multiset MultisetType; @@ -98,7 +98,7 @@ TEST(Multiset, Basic) { StringConcatenationOperator op; mset->forEach(op); - ASSERT_EQ("12", op.accumulator); + ASSERT_EQ(2, op.accumulator.size()); } // Dynamic addition @@ -139,7 +139,7 @@ TEST(Multiset, Basic) std::string* res = mset->emplace(value); // Will NOT override above if (res == UAVCAN_NULLPTR) { - ASSERT_LT(2, i); + ASSERT_LT(1, i); break; } else