26 #ifndef TEST_SET1_INCLUDED
27 #define TEST_SET1_INCLUDED
34 #include "../base/ver.h"
38 #include "../base/str.h"
41 #ifndef CHECK_INCLUDED
42 #include "../base/check.h"
45 #ifndef RELSIZE_INCLUDED
46 #include "../rel/relsize.h"
49 #ifndef GEN_CUR1_INCLUDED
53 #ifndef RTEST_INCLUDED
65 static const long TEST_SET1_MAGIC = 0x5453310AL;
85 CHECK_PAR(set,
"test_set1_c::constructor");
86 CHECK(test_id >= 0 && test_id <= 4,
87 "test_set1_c::constructor: unknown test_id");
133 while(Cur1.fetch()) {
137 bool ok = Set->insert(c1);
171 while(Cur1.fetch()) {
175 bool ok = Set->contains(c1);
197 int size_value(relsize_t relsize) {
198 return Set->size_value(relsize);
212 if(Magic != TEST_SET1_MAGIC)
213 return "wrong magic number";
216 str_t msg = rtest_c::check();
238 "Test for sets with one int column (test_set1_c)";
241 rtest_c::dump(headline);
270 int rel1(
int test_id)
273 CHECK(test_id >= 0 && test_id <= 4,
274 "test_set1_c::rel1: unknown test_id");
#define CHECK_CODE(CODE)
Definition: check.h:167
Superclass for Standard Tests of Relation-like Data Structures.
void inserted_rows(int n)
Definition: rtest.h:209
#define CHECK_IMPOSSIBLE(MSG)
Definition: check.h:151
Abstract superclass for Standard Tests/Benchmarks of relation-like data structures with insert() and ...
Definition: rtest.h:81
void error_row_int(int val)
Definition: rtest.h:256
#define CHECK_VALID(EX)
Definition: check.h:85
const char * str_t
Definition: str.h:41
Cursor over Generated Relations with one Integer Column (for Tests)
Definition: test_set1.h:72
void error_row_open()
Definition: rtest.h:228
void error_row_close()
Definition: rtest.h:285
Definition: gen_cur1.h:63
#define STR_NULL
Definition: str.h:52
#define CHECK(EX, MSG)
Definition: check.h:69
#define CHECK_PAR(PAR, PLACE)
Definition: check.h:102