2 This file is a part of libcds - Concurrent Data Structures library
4 (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
6 Source code repo: http://github.com/khizmax/libcds/
7 Download: http://sourceforge.net/projects/libcds/files/
9 Redistribution and use in source and binary forms, with or without
10 modification, are permitted provided that the following conditions are met:
12 * Redistributions of source code must retain the above copyright notice, this
13 list of conditions and the following disclaimer.
15 * Redistributions in binary form must reproduce the above copyright notice,
16 this list of conditions and the following disclaimer in the documentation
17 and/or other materials provided with the distribution.
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 TEST_F( CDSTEST_FIXTURE_NAME, compare )
33 typedef cc::SkipListSet< gc_type, int_item,
34 typename cc::skip_list::make_traits<
35 cds::opt::compare< cmp >
43 TEST_F( CDSTEST_FIXTURE_NAME, less )
45 typedef cc::SkipListSet< gc_type, int_item,
46 typename cc::skip_list::make_traits<
47 cds::opt::less< base_class::less >
55 TEST_F( CDSTEST_FIXTURE_NAME, cmpmix )
57 typedef cc::SkipListSet< gc_type, int_item,
58 typename cc::skip_list::make_traits<
59 cds::opt::less< base_class::less >
60 ,cds::opt::compare< cmp >
68 TEST_F( CDSTEST_FIXTURE_NAME, item_counting )
70 struct set_traits: public cc::skip_list::traits
73 typedef base_class::less less;
74 typedef cds::atomicity::item_counter item_counter;
76 typedef cc::SkipListSet< gc_type, int_item, set_traits >set_type;
82 TEST_F( CDSTEST_FIXTURE_NAME, backoff )
84 struct set_traits: public cc::skip_list::traits
87 typedef base_class::less less;
88 typedef cds::atomicity::item_counter item_counter;
89 typedef cds::backoff::yield back_off;
91 typedef cc::SkipListSet< gc_type, int_item, set_traits >set_type;
97 TEST_F( CDSTEST_FIXTURE_NAME, stat )
99 struct set_traits: public cc::skip_list::traits
102 typedef base_class::less less;
103 typedef cds::atomicity::item_counter item_counter;
104 typedef cds::backoff::yield back_off;
105 typedef cc::skip_list::stat<> stat;
107 typedef cc::SkipListSet< gc_type, int_item, set_traits >set_type;
113 TEST_F( CDSTEST_FIXTURE_NAME, xorshift32 )
115 struct set_traits: public cc::skip_list::traits
118 typedef base_class::less less;
119 typedef cds::atomicity::item_counter item_counter;
120 typedef cc::skip_list::stat<> stat;
121 typedef cc::skip_list::xorshift32 random_level_generator;
123 typedef cc::SkipListSet< gc_type, int_item, set_traits >set_type;
129 TEST_F( CDSTEST_FIXTURE_NAME, xorshift24 )
131 struct set_traits: public cc::skip_list::traits
134 typedef base_class::less less;
135 typedef cds::atomicity::item_counter item_counter;
136 typedef cc::skip_list::stat<> stat;
137 typedef cc::skip_list::xorshift24 random_level_generator;
139 typedef cc::SkipListSet< gc_type, int_item, set_traits >set_type;
145 TEST_F( CDSTEST_FIXTURE_NAME, xorshift16 )
147 struct set_traits: public cc::skip_list::traits
150 typedef base_class::less less;
151 typedef cds::atomicity::item_counter item_counter;
152 typedef cc::skip_list::stat<> stat;
153 typedef cc::skip_list::xorshift16 random_level_generator;
155 typedef cc::SkipListSet< gc_type, int_item, set_traits >set_type;
161 TEST_F( CDSTEST_FIXTURE_NAME, turbo32 )
163 struct set_traits: public cc::skip_list::traits
166 typedef base_class::less less;
167 typedef cds::atomicity::item_counter item_counter;
168 typedef cc::skip_list::stat<> stat;
169 typedef cc::skip_list::turbo32 random_level_generator;
171 typedef cc::SkipListSet< gc_type, int_item, set_traits >set_type;
177 TEST_F( CDSTEST_FIXTURE_NAME, turbo24 )
179 struct set_traits: public cc::skip_list::traits
182 typedef base_class::less less;
183 typedef cds::atomicity::item_counter item_counter;
184 typedef cc::skip_list::stat<> stat;
185 typedef cc::skip_list::turbo24 random_level_generator;
187 typedef cc::SkipListSet< gc_type, int_item, set_traits >set_type;
193 TEST_F( CDSTEST_FIXTURE_NAME, turbo16 )
195 struct set_traits: public cc::skip_list::traits
198 typedef base_class::less less;
199 typedef cds::atomicity::item_counter item_counter;
200 typedef cc::skip_list::stat<> stat;
201 typedef cc::skip_list::turbo16 random_level_generator;
203 typedef cc::SkipListSet< gc_type, int_item, set_traits >set_type;