projects
/
libcds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed redundant spaces
[libcds.git]
/
test
/
unit
/
map
/
test_skiplist_hp.h
diff --git
a/test/unit/map/test_skiplist_hp.h
b/test/unit/map/test_skiplist_hp.h
index 9c99762b339f441c182ff480a97e4b01c27759a7..b3a53f855b1feb0786b8a953fd51431af2bbf711 100644
(file)
--- a/
test/unit/map/test_skiplist_hp.h
+++ b/
test/unit/map/test_skiplist_hp.h
@@
-59,8
+59,8
@@
namespace cds_test {
shuffle( arrKeys.begin(), arrKeys.end());
for ( auto const& i : arrKeys )
shuffle( arrKeys.begin(), arrKeys.end());
for ( auto const& i : arrKeys )
- ASSERT_TRUE( m.insert( i )
);
- ASSERT_FALSE( m.empty()
);
+ ASSERT_TRUE( m.insert( i ));
+ ASSERT_FALSE( m.empty());
ASSERT_CONTAINER_SIZE( m, kkSize );
// extract_min
ASSERT_CONTAINER_SIZE( m, kkSize );
// extract_min
@@
-69,33
+69,33
@@
namespace cds_test {
int nKey = -1;
size_t nCount = 0;
int nKey = -1;
size_t nCount = 0;
- while ( !m.empty()
) {
+ while ( !m.empty()) {
gp = m.extract_min();
ASSERT_FALSE( !gp );
EXPECT_EQ( gp->first.nKey, nKey + 1 );
nKey = gp->first.nKey;
++nCount;
}
gp = m.extract_min();
ASSERT_FALSE( !gp );
EXPECT_EQ( gp->first.nKey, nKey + 1 );
nKey = gp->first.nKey;
++nCount;
}
- ASSERT_TRUE( m.empty()
);
+ ASSERT_TRUE( m.empty());
ASSERT_CONTAINER_SIZE( m, 0 );
EXPECT_EQ( nCount, kkSize );
// extract_max
for ( auto const& i : arrKeys )
ASSERT_CONTAINER_SIZE( m, 0 );
EXPECT_EQ( nCount, kkSize );
// extract_max
for ( auto const& i : arrKeys )
- ASSERT_TRUE( m.insert( i )
);
- ASSERT_FALSE( m.empty()
);
+ ASSERT_TRUE( m.insert( i ));
+ ASSERT_FALSE( m.empty());
ASSERT_CONTAINER_SIZE( m, kkSize );
nKey = kkSize;
nCount = 0;
ASSERT_CONTAINER_SIZE( m, kkSize );
nKey = kkSize;
nCount = 0;
- while ( !m.empty()
) {
+ while ( !m.empty()) {
gp = m.extract_max();
ASSERT_FALSE( !gp );
EXPECT_EQ( gp->first.nKey, nKey - 1 );
nKey = gp->first.nKey;
++nCount;
}
gp = m.extract_max();
ASSERT_FALSE( !gp );
EXPECT_EQ( gp->first.nKey, nKey - 1 );
nKey = gp->first.nKey;
++nCount;
}
- ASSERT_TRUE( m.empty()
);
+ ASSERT_TRUE( m.empty());
ASSERT_CONTAINER_SIZE( m, 0 );
EXPECT_EQ( nCount, kkSize );
}
ASSERT_CONTAINER_SIZE( m, 0 );
EXPECT_EQ( nCount, kkSize );
}