mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
Commented out un-implemented 'get_iterator()' tests.
This commit is contained in:
parent
28770bf0cf
commit
f6cf0965e9
@ -243,42 +243,42 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_get_iterator)
|
||||
{
|
||||
typedef etl::pool<Test_Data, 4> Pool;
|
||||
////*************************************************************************
|
||||
//TEST(test_get_iterator)
|
||||
//{
|
||||
// typedef etl::pool<Test_Data, 4> 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<Test_Data, 4> Pool;
|
||||
////*************************************************************************
|
||||
//TEST(test_get_iterator_const)
|
||||
//{
|
||||
// typedef etl::pool<Test_Data, 4> 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);
|
||||
//}
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user