MultiLevelHashSet test, bugfixing
[libcds.git] / tests / test-hdr / set / hdr_skiplist_set.h
1 //$$CDS-header$$
2
3 #ifndef CDSTEST_HDR_SKIPLIST_SET_H
4 #define CDSTEST_HDR_SKIPLIST_SET_H
5
6 #include "set/hdr_set.h"
7
8 namespace set {
9
10     class SkipListSetHdrTest: public HashSetHdrTest
11     {
12         typedef HashSetHdrTest base_class;
13
14         typedef base_class::other_item  wrapped_item;
15         typedef base_class::other_less  wrapped_less;
16
17         template <class Set, typename PrintStat >
18         void test()
19         {
20             Set s;
21             base_class::test_int_with( s );
22
23             static int const nLimit = 10000;
24             typedef typename Set::iterator          set_iterator;
25             typedef typename Set::const_iterator    const_set_iterator;
26             typedef typename Set::guarded_ptr       guarded_ptr;
27
28             int nCount = 0;
29             int nPrevKey = 0;
30             guarded_ptr gp;
31             int arrRandom[nLimit];
32             for ( int i = 0; i < nLimit; ++i )
33                 arrRandom[i] = i;
34             shuffle( arrRandom, arrRandom + nLimit );
35
36
37             // Test iterator - ascending order
38             s.clear();
39             CPPUNIT_ASSERT( s.empty() );
40
41             for ( int i = 0; i < nLimit; ++i ) {
42                 gp = s.get( i );
43                 CPPUNIT_CHECK( !gp );
44                 CPPUNIT_CHECK( gp.empty() );
45
46                 CPPUNIT_ASSERT( s.insert(i) );
47
48                 gp = s.get( i );
49                 CPPUNIT_CHECK( gp );
50                 CPPUNIT_ASSERT( !gp.empty());
51                 CPPUNIT_CHECK( gp->nKey == i );
52                 CPPUNIT_CHECK( gp->nVal == i );
53                 gp.release();
54             }
55             CPPUNIT_MSG( PrintStat()(s, "Iterator test, ascending insert order") );
56
57             nCount = 0;
58             nPrevKey = 0;
59             for ( set_iterator it = s.begin(), itEnd = s.end(); it != itEnd; ++it ) {
60                 CPPUNIT_ASSERT( (*it).nKey == it->nVal );
61                 CPPUNIT_ASSERT( s.contains( it->nKey ));
62                 it->nVal = (*it).nKey * 2;
63                 ++nCount;
64                 if ( it != s.begin() ) {
65                     CPPUNIT_ASSERT( nPrevKey + 1 == it->nKey );
66                 }
67                 nPrevKey = it->nKey;
68
69                 // get
70                 gp = s.get( it->nKey );
71                 CPPUNIT_CHECK( gp );
72                 CPPUNIT_ASSERT( !gp.empty() );
73                 CPPUNIT_CHECK( gp->nKey == it->nKey );
74                 CPPUNIT_CHECK( gp->nVal == it->nKey * 2 );
75                 gp.release();
76             }
77             CPPUNIT_ASSERT( nCount == nLimit );
78
79             nCount = 0;
80             for ( const_set_iterator it = s.cbegin(), itEnd = s.cend(); it != itEnd; ++it ) {
81                 CPPUNIT_ASSERT( (*it).nKey * 2 == it->nVal );
82                 ++nCount;
83                 if ( it != s.cbegin() ) {
84                     CPPUNIT_ASSERT( nPrevKey + 1 == it->nKey );
85                 }
86                 nPrevKey = it->nKey;
87             }
88             CPPUNIT_ASSERT( nCount == nLimit );
89
90             // Test iterator - descending order
91             s.clear();
92             CPPUNIT_ASSERT( s.empty() );
93
94             for ( int i = nLimit; i > 0; --i ) {
95                 gp = s.get_with( i - 1, base_class::less<typename Set::value_type>());
96                 CPPUNIT_CHECK( !gp );
97                 CPPUNIT_CHECK( gp.empty() );
98
99                 CPPUNIT_ASSERT( s.insert( std::make_pair(i - 1, (i-1) * 2) ));
100
101                 // get_with
102                 gp = s.get_with( i - 1, base_class::less<typename Set::value_type>());
103                 CPPUNIT_CHECK( gp );
104                 CPPUNIT_ASSERT( !gp.empty());
105                 CPPUNIT_CHECK( gp->nKey == i-1 );
106                 CPPUNIT_CHECK( gp->nVal == (i-1) * 2 );
107                 gp.release();
108             }
109             CPPUNIT_MSG( PrintStat()(s, "Iterator test, descending insert order") );
110
111             nCount = 0;
112             nPrevKey = 0;
113             for ( set_iterator it = s.begin(), itEnd = s.end(); it != itEnd; ++it ) {
114                 CPPUNIT_ASSERT( (*it).nKey * 2 == it->nVal );
115                 CPPUNIT_ASSERT( s.contains( it->nKey ));
116                 it->nVal = (*it).nKey;
117                 ++nCount;
118                 if ( it != s.begin() ) {
119                     CPPUNIT_ASSERT( nPrevKey + 1 == it->nKey );
120                 }
121                 nPrevKey = it->nKey;
122             }
123             CPPUNIT_ASSERT( nCount == nLimit );
124
125             nCount = 0;
126             for ( const_set_iterator it = s.cbegin(), itEnd = s.cend(); it != itEnd; ++it ) {
127                 CPPUNIT_ASSERT( (*it).nKey == it->nVal );
128                 ++nCount;
129                 if ( it != s.cbegin() ) {
130                     CPPUNIT_ASSERT( nPrevKey + 1 == it->nKey );
131                 }
132                 nPrevKey = it->nKey;
133             }
134             CPPUNIT_ASSERT( nCount == nLimit );
135
136             // Test iterator - random order
137             s.clear();
138             CPPUNIT_ASSERT( s.empty() );
139             {
140                 for ( int i = 0; i < nLimit; ++i )
141                     CPPUNIT_ASSERT( s.insert( arrRandom[i]) );
142                 CPPUNIT_MSG( PrintStat()(s, "Iterator test, random insert order") );
143             }
144
145             nCount = 0;
146             nPrevKey = 0;
147             for ( set_iterator it = s.begin(), itEnd = s.end(); it != itEnd; ++it ) {
148                 CPPUNIT_ASSERT( (*it).nKey == it->nVal );
149                 CPPUNIT_ASSERT( s.contains( it->nKey ));
150                 it->nVal = (*it).nKey * 2;
151                 ++nCount;
152                 if ( it != s.begin() ) {
153                     CPPUNIT_ASSERT( nPrevKey + 1 == it->nKey );
154                 }
155                 nPrevKey = it->nKey;
156             }
157             CPPUNIT_ASSERT( nCount == nLimit );
158
159             nCount = 0;
160             for ( const_set_iterator it = s.cbegin(), itEnd = s.cend(); it != itEnd; ++it ) {
161                 CPPUNIT_ASSERT( (*it).nKey * 2 == it->nVal );
162                 ++nCount;
163                 if ( it != s.cbegin() ) {
164                     CPPUNIT_ASSERT( nPrevKey + 1 == it->nKey );
165                 }
166                 nPrevKey = it->nKey;
167             }
168             CPPUNIT_ASSERT( nCount == nLimit );
169
170             // extract test
171             {
172                 typedef typename base_class::less<typename Set::value_type> less_predicate;
173                 typename Set::guarded_ptr gp;
174
175                 // extract/get
176                 for ( int i = 0; i < nLimit; ++i ) {
177                     int nKey = arrRandom[i];
178                     gp = s.get( nKey );
179                     CPPUNIT_ASSERT( gp );
180                     CPPUNIT_ASSERT( !gp.empty());
181                     CPPUNIT_CHECK( gp->nKey == nKey );
182                     CPPUNIT_CHECK( gp->nVal == nKey * 2);
183                     gp.release();
184
185                     gp = s.extract( nKey );
186                     CPPUNIT_ASSERT( gp );
187                     CPPUNIT_ASSERT( !gp.empty());
188                     CPPUNIT_CHECK( gp->nKey == nKey );
189                     CPPUNIT_CHECK( gp->nVal == nKey * 2);
190                     gp.release();
191
192                     gp = s.get( nKey );
193                     CPPUNIT_CHECK( !gp );
194                     CPPUNIT_ASSERT( gp.empty());
195                     CPPUNIT_ASSERT( !s.extract(nKey));
196                 }
197                 CPPUNIT_ASSERT( s.empty() );
198
199                 // extract_with/get_with
200                 for ( int i = 0; i < nLimit; ++i )
201                     CPPUNIT_ASSERT( s.insert( arrRandom[i]) );
202
203                 for ( int i = 0; i < nLimit; ++i ) {
204                     int nKey = arrRandom[i];
205                     gp = s.get_with( wrapped_item( nKey ), wrapped_less());
206                     CPPUNIT_ASSERT( gp );
207                     CPPUNIT_ASSERT( !gp.empty());
208                     CPPUNIT_CHECK( gp->nKey == nKey );
209                     CPPUNIT_CHECK( gp->nVal == nKey );
210                     gp.release();
211
212                     gp = s.extract_with( wrapped_item( nKey ), wrapped_less());
213                     CPPUNIT_ASSERT( gp );
214                     CPPUNIT_ASSERT( !gp.empty());
215                     CPPUNIT_CHECK( gp->nKey == nKey );
216                     CPPUNIT_CHECK( gp->nVal == nKey );
217                     gp.release();
218
219                     gp = s.get_with( wrapped_item( nKey ), wrapped_less());
220                     CPPUNIT_CHECK( !gp );
221                     CPPUNIT_ASSERT( !s.extract_with( wrapped_item(nKey), wrapped_less() ));
222                 }
223                 CPPUNIT_ASSERT( s.empty() );
224
225                 // extract_min
226                 for ( int i = 0; i < nLimit; ++i )
227                     CPPUNIT_ASSERT( s.insert( arrRandom[i]) );
228
229                 for ( int i = 0; i < nLimit; ++i ) {
230                     gp = s.extract_min();
231                     CPPUNIT_ASSERT( gp );
232                     CPPUNIT_ASSERT( !gp.empty());
233                     CPPUNIT_CHECK( gp->nKey == i );
234                     CPPUNIT_CHECK( gp->nVal == i );
235                     gp.release();
236
237                     gp = s.get( i );
238                     CPPUNIT_CHECK( !gp );
239                 }
240                 CPPUNIT_ASSERT( s.empty() );
241                 CPPUNIT_CHECK( !s.extract_min());
242                 CPPUNIT_CHECK( !s.extract_max());
243
244                 // extract_max
245                 for ( int i = 0; i < nLimit; ++i )
246                     CPPUNIT_ASSERT( s.insert( arrRandom[i]) );
247
248                 for ( int i = nLimit-1; i >= 0; --i ) {
249                     gp = s.extract_max();
250                     CPPUNIT_ASSERT( gp );
251                     CPPUNIT_ASSERT( !gp.empty());
252                     CPPUNIT_CHECK( gp->nKey == i );
253                     CPPUNIT_CHECK( gp->nVal == i );
254                     gp.release();
255
256                     gp = s.get( i );
257                     CPPUNIT_CHECK( !gp );
258                 }
259                 CPPUNIT_ASSERT( s.empty() );
260                 CPPUNIT_CHECK( !s.extract_min());
261                 CPPUNIT_CHECK( !s.extract_max());
262             }
263
264             CPPUNIT_MSG( PrintStat()(s, nullptr) );
265         }
266
267         template <class Set, typename PrintStat >
268         void test_nogc()
269         {
270             typedef typename Set::value_type        value_type;
271             typedef typename Set::iterator          iterator;
272             typedef typename Set::const_iterator    const_iterator;
273
274             Set s;
275             iterator it;
276
277             CPPUNIT_ASSERT( s.empty() );
278             CPPUNIT_ASSERT( check_size( s, 0 ));
279
280             // insert
281             it = s.insert( 10 );
282             CPPUNIT_ASSERT( it != s.end() );
283             CPPUNIT_ASSERT( it->key() == 10 );
284             CPPUNIT_ASSERT( it->val() == 10 );
285             CPPUNIT_ASSERT( !s.empty() );
286             CPPUNIT_ASSERT( check_size( s, 1 ));
287             CPPUNIT_ASSERT( s.insert( 10 ) == s.end() );
288
289             it = s.insert( std::make_pair( 50, 25 ));
290             CPPUNIT_ASSERT( it != s.end() );
291             CPPUNIT_ASSERT( it->key() == 50 );
292             CPPUNIT_ASSERT( it->val() == 25 );
293             CPPUNIT_ASSERT( !s.empty() );
294             CPPUNIT_ASSERT( check_size( s, 2 ));
295             CPPUNIT_ASSERT( s.insert( 50 ) == s.end() );
296
297             // update
298             std::pair< iterator, bool>  updateResult;
299             updateResult = s.update(20, false);
300             CPPUNIT_ASSERT(updateResult.first == s.end());
301             CPPUNIT_ASSERT(!updateResult.second);
302             CPPUNIT_ASSERT(check_size(s, 2));
303
304             updateResult = s.update( 20 );
305             CPPUNIT_ASSERT( updateResult.first != s.end() );
306             CPPUNIT_ASSERT( updateResult.second  );
307             CPPUNIT_ASSERT( updateResult.first->key() == 20 );
308             CPPUNIT_ASSERT( updateResult.first->val() == 20 );
309             CPPUNIT_ASSERT( !s.empty() );
310             CPPUNIT_ASSERT( check_size( s, 3 ));
311
312             updateResult = s.update( std::make_pair( 20, 200 ));
313             CPPUNIT_ASSERT( updateResult.first != s.end() );
314             CPPUNIT_ASSERT( !updateResult.second  );
315             CPPUNIT_ASSERT( updateResult.first->key() == 20 );
316             CPPUNIT_ASSERT( updateResult.first->val() == 20 );
317             CPPUNIT_ASSERT( !s.empty() );
318             CPPUNIT_ASSERT( check_size( s, 3 ));
319             updateResult.first->nVal = 22;
320
321             updateResult = s.update( std::make_pair( 30, 33 ));
322             CPPUNIT_ASSERT( updateResult.first != s.end() );
323             CPPUNIT_ASSERT( updateResult.second  );
324             CPPUNIT_ASSERT( updateResult.first->key() == 30 );
325             CPPUNIT_ASSERT( updateResult.first->val() == 33 );
326             CPPUNIT_ASSERT( !s.empty() );
327             CPPUNIT_ASSERT( check_size( s, 4 ));
328
329             // find
330             it = s.contains( 10 );
331             CPPUNIT_ASSERT( it != s.end() );
332             CPPUNIT_ASSERT( it->key() == 10 );
333             CPPUNIT_ASSERT( it->val() == 10 );
334
335             it = s.contains( 20 );
336             CPPUNIT_ASSERT( it != s.end() );
337             CPPUNIT_ASSERT( it->key() == 20 );
338             CPPUNIT_ASSERT( it->val() == 22 );
339
340             it = s.contains( 30, base_class::less<value_type>() );
341             CPPUNIT_ASSERT( it != s.end() );
342             CPPUNIT_ASSERT( it->key() == 30 );
343             CPPUNIT_ASSERT( it->val() == 33 );
344
345             it = s.contains( 40 );
346             CPPUNIT_ASSERT( it == s.end() );
347
348             it = s.contains( 50 );
349             CPPUNIT_ASSERT( it != s.end() );
350             CPPUNIT_ASSERT( it->key() == 50 );
351             CPPUNIT_ASSERT( it->val() == 25 );
352
353             // emplace test
354             it = s.emplace( 151 ) ;  // key = 151,  val = 151
355             CPPUNIT_ASSERT( it != s.end() );
356             CPPUNIT_ASSERT( it->key() == 151 );
357             CPPUNIT_ASSERT( it->val() == 151 );
358
359             it = s.emplace( 174, 471 ) ; // key == 174, val = 471
360             CPPUNIT_ASSERT( it != s.end() );
361             CPPUNIT_ASSERT( it->key() == 174 );
362             CPPUNIT_ASSERT( it->val() == 471 );
363
364             it = s.emplace( std::make_pair( 190, 91 )) ; // key == 190, val = 91
365             CPPUNIT_ASSERT( it != s.end() );
366             CPPUNIT_ASSERT( it->key() == 190 );
367             CPPUNIT_ASSERT( it->val() == 91 );
368
369             it = s.contains( 174 );
370             CPPUNIT_ASSERT( it != s.end() );
371             CPPUNIT_ASSERT( it->key() == 174 );
372             CPPUNIT_ASSERT( it->val() == 471 );
373
374             it = s.contains( 190 );
375             CPPUNIT_ASSERT( it != s.end() );
376             CPPUNIT_ASSERT( it->key() == 190 );
377             CPPUNIT_ASSERT( it->val() == 91 );
378
379             it = s.contains( 151 );
380             CPPUNIT_ASSERT( it != s.end() );
381             CPPUNIT_ASSERT( it->key() == 151 );
382             CPPUNIT_ASSERT( it->val() == 151 );
383
384             CPPUNIT_ASSERT( !s.empty() );
385             s.clear();
386             CPPUNIT_ASSERT( s.empty() );
387             CPPUNIT_ASSERT( check_size( s, 0 ));
388
389             // get_min test
390             for ( int i = 500; i > 0; --i ) {
391                 CPPUNIT_ASSERT( s.insert( std::make_pair( i, i * 2) ) != s.end() );
392
393                 typename Set::value_type * pVal = s.get_min();
394                 CPPUNIT_ASSERT( pVal != nullptr );
395                 CPPUNIT_CHECK( pVal->nKey == i );
396                 CPPUNIT_CHECK( pVal->nVal ==  i * 2 );
397             }
398             CPPUNIT_ASSERT( !s.empty() );
399             s.clear();
400             CPPUNIT_ASSERT( s.empty() );
401             CPPUNIT_ASSERT( check_size( s, 0 ));
402
403             CPPUNIT_CHECK( s.get_min() == nullptr );
404             CPPUNIT_CHECK( s.get_max() == nullptr );
405
406             // iterator test
407             for ( int i = 0; i < 500; ++i ) {
408                 CPPUNIT_ASSERT( s.insert( std::make_pair( i, i * 2) ) != s.end() );
409
410                 typename Set::value_type * pVal = s.get_max();
411                 CPPUNIT_ASSERT( pVal != nullptr );
412                 CPPUNIT_CHECK( pVal->nKey == i );
413                 CPPUNIT_CHECK( pVal->nVal == i * 2 );
414             }
415             CPPUNIT_ASSERT( !s.empty() );
416             CPPUNIT_ASSERT( check_size( s, 500 ));
417
418             for ( iterator it = s.begin(), itEnd = s.end(); it != itEnd; ++it ) {
419                 CPPUNIT_ASSERT( (*it).nKey * 2 == it->nVal );
420                 it->nVal = (*it).nKey;
421             }
422
423             Set const& refSet = s;
424             for ( const_iterator it = refSet.begin(), itEnd = refSet.end(); it != itEnd; ++it ) {
425                 CPPUNIT_ASSERT( (*it).nKey == it->nVal );
426             }
427         }
428
429     public:
430         void SkipList_HP_less();
431         void SkipList_HP_cmp();
432         void SkipList_HP_cmpless();
433         void SkipList_HP_less_stat();
434         void SkipList_HP_cmp_stat();
435         void SkipList_HP_cmpless_stat();
436         void SkipList_HP_xorshift_less();
437         void SkipList_HP_xorshift_cmp();
438         void SkipList_HP_xorshift_cmpless();
439         void SkipList_HP_xorshift_less_stat();
440         void SkipList_HP_xorshift_cmp_stat();
441         void SkipList_HP_xorshift_cmpless_stat();
442         void SkipList_HP_turbopas_less();
443         void SkipList_HP_turbopas_cmp();
444         void SkipList_HP_turbopas_cmpless();
445         void SkipList_HP_turbopas_less_stat();
446         void SkipList_HP_turbopas_cmp_stat();
447         void SkipList_HP_turbopas_cmpless_stat();
448         void SkipList_HP_michaelalloc_less();
449         void SkipList_HP_michaelalloc_cmp();
450         void SkipList_HP_michaelalloc_cmpless();
451         void SkipList_HP_michaelalloc_less_stat();
452         void SkipList_HP_michaelalloc_cmp_stat();
453         void SkipList_HP_michaelalloc_cmpless_stat();
454
455         void SkipList_DHP_less();
456         void SkipList_DHP_cmp();
457         void SkipList_DHP_cmpless();
458         void SkipList_DHP_less_stat();
459         void SkipList_DHP_cmp_stat();
460         void SkipList_DHP_cmpless_stat();
461         void SkipList_DHP_xorshift_less();
462         void SkipList_DHP_xorshift_cmp();
463         void SkipList_DHP_xorshift_cmpless();
464         void SkipList_DHP_xorshift_less_stat();
465         void SkipList_DHP_xorshift_cmp_stat();
466         void SkipList_DHP_xorshift_cmpless_stat();
467         void SkipList_DHP_turbopas_less();
468         void SkipList_DHP_turbopas_cmp();
469         void SkipList_DHP_turbopas_cmpless();
470         void SkipList_DHP_turbopas_less_stat();
471         void SkipList_DHP_turbopas_cmp_stat();
472         void SkipList_DHP_turbopas_cmpless_stat();
473         void SkipList_DHP_michaelalloc_less();
474         void SkipList_DHP_michaelalloc_cmp();
475         void SkipList_DHP_michaelalloc_cmpless();
476         void SkipList_DHP_michaelalloc_less_stat();
477         void SkipList_DHP_michaelalloc_cmp_stat();
478         void SkipList_DHP_michaelalloc_cmpless_stat();
479
480         void SkipList_NOGC_less();
481         void SkipList_NOGC_cmp();
482         void SkipList_NOGC_cmpless();
483         void SkipList_NOGC_less_stat();
484         void SkipList_NOGC_cmp_stat();
485         void SkipList_NOGC_cmpless_stat();
486         void SkipList_NOGC_xorshift_less();
487         void SkipList_NOGC_xorshift_cmp();
488         void SkipList_NOGC_xorshift_cmpless();
489         void SkipList_NOGC_xorshift_less_stat();
490         void SkipList_NOGC_xorshift_cmp_stat();
491         void SkipList_NOGC_xorshift_cmpless_stat();
492         void SkipList_NOGC_turbopas_less();
493         void SkipList_NOGC_turbopas_cmp();
494         void SkipList_NOGC_turbopas_cmpless();
495         void SkipList_NOGC_turbopas_less_stat();
496         void SkipList_NOGC_turbopas_cmp_stat();
497         void SkipList_NOGC_turbopas_cmpless_stat();
498         void SkipList_NOGC_michaelalloc_less();
499         void SkipList_NOGC_michaelalloc_cmp();
500         void SkipList_NOGC_michaelalloc_cmpless();
501         void SkipList_NOGC_michaelalloc_less_stat();
502         void SkipList_NOGC_michaelalloc_cmp_stat();
503         void SkipList_NOGC_michaelalloc_cmpless_stat();
504
505         CPPUNIT_TEST_SUITE(SkipListSetHdrTest)
506             CPPUNIT_TEST(SkipList_HP_less)
507             CPPUNIT_TEST(SkipList_HP_cmp)
508             CPPUNIT_TEST(SkipList_HP_cmpless)
509             CPPUNIT_TEST(SkipList_HP_less_stat)
510             CPPUNIT_TEST(SkipList_HP_cmp_stat)
511             CPPUNIT_TEST(SkipList_HP_cmpless_stat)
512             CPPUNIT_TEST(SkipList_HP_xorshift_less)
513             CPPUNIT_TEST(SkipList_HP_xorshift_cmp)
514             CPPUNIT_TEST(SkipList_HP_xorshift_cmpless)
515             CPPUNIT_TEST(SkipList_HP_xorshift_less_stat)
516             CPPUNIT_TEST(SkipList_HP_xorshift_cmp_stat)
517             CPPUNIT_TEST(SkipList_HP_xorshift_cmpless_stat)
518             CPPUNIT_TEST(SkipList_HP_turbopas_less)
519             CPPUNIT_TEST(SkipList_HP_turbopas_cmp)
520             CPPUNIT_TEST(SkipList_HP_turbopas_cmpless)
521             CPPUNIT_TEST(SkipList_HP_turbopas_less_stat)
522             CPPUNIT_TEST(SkipList_HP_turbopas_cmp_stat)
523             CPPUNIT_TEST(SkipList_HP_turbopas_cmpless_stat)
524             CPPUNIT_TEST(SkipList_HP_michaelalloc_less)
525             CPPUNIT_TEST(SkipList_HP_michaelalloc_cmp)
526             CPPUNIT_TEST(SkipList_HP_michaelalloc_cmpless)
527             CPPUNIT_TEST(SkipList_HP_michaelalloc_less_stat)
528             CPPUNIT_TEST(SkipList_HP_michaelalloc_cmp_stat)
529             CPPUNIT_TEST(SkipList_HP_michaelalloc_cmpless_stat)
530
531             CPPUNIT_TEST(SkipList_DHP_less)
532             CPPUNIT_TEST(SkipList_DHP_cmp)
533             CPPUNIT_TEST(SkipList_DHP_cmpless)
534             CPPUNIT_TEST(SkipList_DHP_less_stat)
535             CPPUNIT_TEST(SkipList_DHP_cmp_stat)
536             CPPUNIT_TEST(SkipList_DHP_cmpless_stat)
537             CPPUNIT_TEST(SkipList_DHP_xorshift_less)
538             CPPUNIT_TEST(SkipList_DHP_xorshift_cmp)
539             CPPUNIT_TEST(SkipList_DHP_xorshift_cmpless)
540             CPPUNIT_TEST(SkipList_DHP_xorshift_less_stat)
541             CPPUNIT_TEST(SkipList_DHP_xorshift_cmp_stat)
542             CPPUNIT_TEST(SkipList_DHP_xorshift_cmpless_stat)
543             CPPUNIT_TEST(SkipList_DHP_turbopas_less)
544             CPPUNIT_TEST(SkipList_DHP_turbopas_cmp)
545             CPPUNIT_TEST(SkipList_DHP_turbopas_cmpless)
546             CPPUNIT_TEST(SkipList_DHP_turbopas_less_stat)
547             CPPUNIT_TEST(SkipList_DHP_turbopas_cmp_stat)
548             CPPUNIT_TEST(SkipList_DHP_turbopas_cmpless_stat)
549             CPPUNIT_TEST(SkipList_DHP_michaelalloc_less)
550             CPPUNIT_TEST(SkipList_DHP_michaelalloc_cmp)
551             CPPUNIT_TEST(SkipList_DHP_michaelalloc_cmpless)
552             CPPUNIT_TEST(SkipList_DHP_michaelalloc_less_stat)
553             CPPUNIT_TEST(SkipList_DHP_michaelalloc_cmp_stat)
554             CPPUNIT_TEST(SkipList_DHP_michaelalloc_cmpless_stat)
555
556             CPPUNIT_TEST(SkipList_NOGC_less)
557             CPPUNIT_TEST(SkipList_NOGC_cmp)
558             CPPUNIT_TEST(SkipList_NOGC_cmpless)
559             CPPUNIT_TEST(SkipList_NOGC_less_stat)
560             CPPUNIT_TEST(SkipList_NOGC_cmp_stat)
561             CPPUNIT_TEST(SkipList_NOGC_cmpless_stat)
562             CPPUNIT_TEST(SkipList_NOGC_xorshift_less)
563             CPPUNIT_TEST(SkipList_NOGC_xorshift_cmp)
564             CPPUNIT_TEST(SkipList_NOGC_xorshift_cmpless)
565             CPPUNIT_TEST(SkipList_NOGC_xorshift_less_stat)
566             CPPUNIT_TEST(SkipList_NOGC_xorshift_cmp_stat)
567             CPPUNIT_TEST(SkipList_NOGC_xorshift_cmpless_stat)
568             CPPUNIT_TEST(SkipList_NOGC_turbopas_less)
569             CPPUNIT_TEST(SkipList_NOGC_turbopas_cmp)
570             CPPUNIT_TEST(SkipList_NOGC_turbopas_cmpless)
571             CPPUNIT_TEST(SkipList_NOGC_turbopas_less_stat)
572             CPPUNIT_TEST(SkipList_NOGC_turbopas_cmp_stat)
573             CPPUNIT_TEST(SkipList_NOGC_turbopas_cmpless_stat)
574             CPPUNIT_TEST(SkipList_NOGC_michaelalloc_less)
575             CPPUNIT_TEST(SkipList_NOGC_michaelalloc_cmp)
576             CPPUNIT_TEST(SkipList_NOGC_michaelalloc_cmpless)
577             CPPUNIT_TEST(SkipList_NOGC_michaelalloc_less_stat)
578             CPPUNIT_TEST(SkipList_NOGC_michaelalloc_cmp_stat)
579             CPPUNIT_TEST(SkipList_NOGC_michaelalloc_cmpless_stat)
580
581         CPPUNIT_TEST_SUITE_END()
582
583     };
584 }
585
586 #endif // #ifndef CDSTEST_HDR_SKIPLIST_SET_H