bricks: rework tests
On some architectures this test fails due to several
reasons:
- missing headers
- use of valueAt instead of count in ConCS. Indeed,
valueAt acts similarly to count but avoids some validity
check that are required when the hashmap is growing.
This patch also:
- removes inaccurate comments from bricks.test.
- test more features for hashset.
* spot/bricks/brick-hashset,
tests/core/bricks.cc,
tests/core/bricks.test: Here.
This commit is contained in:
parent
f748281719
commit
b3c7994a1d
3 changed files with 10 additions and 8 deletions
|
|
@ -965,7 +965,7 @@ struct Sequential
|
|||
|
||||
unsigned count = 0;
|
||||
for ( unsigned i = 0; i != set.capacity(); ++i )
|
||||
if ( set.valueAt( i ) )
|
||||
if ( set.count( i ) )
|
||||
++count;
|
||||
|
||||
ASSERT_EQ( count, 1u );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue