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