From f6cf0965e943e9499eb2d85e8ee19f3063b4e568 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 28 Aug 2015 09:41:25 +0100 Subject: [PATCH] Commented out un-implemented 'get_iterator()' tests. --- test/test_pool.cpp | 56 +++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/test/test_pool.cpp b/test/test_pool.cpp index 03b49c40..d3569ae6 100644 --- a/test/test_pool.cpp +++ b/test/test_pool.cpp @@ -243,42 +243,42 @@ namespace } } - //************************************************************************* - TEST(test_get_iterator) - { - typedef etl::pool Pool; + ////************************************************************************* + //TEST(test_get_iterator) + //{ + // typedef etl::pool Pool; - Pool pool; - Test_Data not_in_pool; + // Pool pool; + // Test_Data not_in_pool; - Test_Data* p1 = pool.allocate(); - Test_Data* p2 = pool.allocate(); + // Test_Data* p1 = pool.allocate(); + // Test_Data* p2 = pool.allocate(); - Pool::iterator i_data = pool.get_iterator(*p1); - Pool::iterator i_ndata = pool.get_iterator(not_in_pool); + // Pool::iterator i_data = pool.get_iterator(*p1); + // Pool::iterator i_ndata = pool.get_iterator(not_in_pool); - CHECK(p1 == &*i_data); - CHECK(p2 != &*i_data); - CHECK(pool.end() == i_ndata); - } + // CHECK(p1 == &*i_data); + // CHECK(p2 != &*i_data); + // CHECK(pool.end() == i_ndata); + //} - //************************************************************************* - TEST(test_get_iterator_const) - { - typedef etl::pool Pool; + ////************************************************************************* + //TEST(test_get_iterator_const) + //{ + // typedef etl::pool Pool; - Pool pool; - const Test_Data not_in_pool; + // Pool pool; + // const Test_Data not_in_pool; - const Test_Data* p1 = pool.allocate(); - const Test_Data* p2 = pool.allocate(); + // const Test_Data* p1 = pool.allocate(); + // const Test_Data* p2 = pool.allocate(); - Pool::const_iterator i_data = pool.get_iterator(*p1); - Pool::const_iterator i_ndata = pool.get_iterator(not_in_pool); + // Pool::const_iterator i_data = pool.get_iterator(*p1); + // Pool::const_iterator i_ndata = pool.get_iterator(not_in_pool); - CHECK(p1 == &*i_data); - CHECK(p2 != &*i_data); - CHECK(pool.end() == i_ndata); - } + // CHECK(p1 == &*i_data); + // CHECK(p2 != &*i_data); + // CHECK(pool.end() == i_ndata); + //} }; }