• Home
  • Raw
  • Download

Lines Matching refs:REPORTER_ASSERT

20     REPORTER_ASSERT(reporter, a->count() == b->count());  in test_is_equal()
25 REPORTER_ASSERT(reporter, sizea == sizeb); in test_is_equal()
26 REPORTER_ASSERT(reporter, !memcmp(mema, memb, sizea)); in test_is_equal()
31 REPORTER_ASSERT(reporter, table->isEmpty()); in test_datatable_is_empty()
32 REPORTER_ASSERT(reporter, 0 == table->count()); in test_datatable_is_empty()
55 REPORTER_ASSERT(reporter, itable->count() == icount); in test_simpletable()
58 REPORTER_ASSERT(reporter, sizeof(int) == itable->atSize(i)); in test_simpletable()
59 REPORTER_ASSERT(reporter, *itable->atT<int>(i, &size) == idata[i]); in test_simpletable()
60 REPORTER_ASSERT(reporter, sizeof(int) == size); in test_simpletable()
76 REPORTER_ASSERT(reporter, table->count() == count); in test_vartable()
79 REPORTER_ASSERT(reporter, table->atSize(i) == sizes[i]); in test_vartable()
80 REPORTER_ASSERT(reporter, !strcmp(table->atT<const char>(i, &size), in test_vartable()
82 REPORTER_ASSERT(reporter, size == sizes[i]); in test_vartable()
85 REPORTER_ASSERT(reporter, strlen(s) == strlen(str[i])); in test_vartable()
98 REPORTER_ASSERT(reporter, table->count() == count); in test_globaltable()
101 REPORTER_ASSERT(reporter, table->atSize(i) == sizeof(int)); in test_globaltable()
102 REPORTER_ASSERT(reporter, *table->atT<const char>(i, &size) == i); in test_globaltable()
103 REPORTER_ASSERT(reporter, sizeof(int) == size); in test_globaltable()
123 REPORTER_ASSERT(reporter, ref->size() == len); in assert_len()
128 REPORTER_ASSERT(reporter, ref->size() == len); in assert_data()
129 REPORTER_ASSERT(reporter, !memcmp(ref->data(), data, len)); in assert_data()
139 REPORTER_ASSERT(reporter, r0->equals(r1.get())); in test_cstring()
142 REPORTER_ASSERT(reporter, 1 == r2->size()); in test_cstring()
143 REPORTER_ASSERT(reporter, 0 == *r2->bytes()); in test_cstring()
166 REPORTER_ASSERT(reporter, r1.get() != nullptr); in test_files()
167 REPORTER_ASSERT(reporter, r1->size() == 26); in test_files()
168 REPORTER_ASSERT(reporter, strncmp(static_cast<const char*>(r1->data()), s, 26) == 0); in test_files()
172 REPORTER_ASSERT(reporter, r2.get() != nullptr); in test_files()
173 REPORTER_ASSERT(reporter, r2->size() == 26); in test_files()
174 REPORTER_ASSERT(reporter, strncmp(static_cast<const char*>(r2->data()), s, 26) == 0); in test_files()
209 REPORTER_ASSERT(reporter, size % 26 == 0); in check_abcs()
211 REPORTER_ASSERT(reporter, !memcmp(&buffer[offset], gABC, 26)); in check_abcs()
217 REPORTER_ASSERT(reporter, stream->hasLength()); in check_alphabet_stream()
219 REPORTER_ASSERT(reporter, size % 26 == 0); in check_alphabet_stream()
224 REPORTER_ASSERT(reporter, bytesRead == size); in check_alphabet_stream()
229 REPORTER_ASSERT(reporter, stream->seek(offset - 26)); in check_alphabet_stream()
230 REPORTER_ASSERT(reporter, stream->getPosition() == offset - 26); in check_alphabet_stream()
231 REPORTER_ASSERT(reporter, stream->read(array, 26) == 26); in check_alphabet_stream()
233 REPORTER_ASSERT(reporter, stream->getPosition() == offset); in check_alphabet_stream()
240 REPORTER_ASSERT(reporter, size % 26 == 0); in check_alphabet_buffer()
250 REPORTER_ASSERT(reporter, offset == size); in check_alphabet_buffer()
270 REPORTER_ASSERT(reporter, N*26 == buffer.size()); in DEF_TEST()
275 REPORTER_ASSERT(reporter, (i + 1) * 26U == readers[i]->size()); in DEF_TEST()
291 REPORTER_ASSERT(reporter, reader->size() == buffer.size()); in DEF_TEST()
292 REPORTER_ASSERT(reporter, stream->getLength() == buffer.size()); in DEF_TEST()
298 REPORTER_ASSERT(reporter, (i + 1) * 26U == reader->size()); in DEF_TEST()
299 REPORTER_ASSERT(reporter, stream->getLength() == reader->size()); in DEF_TEST()
302 REPORTER_ASSERT(reporter, stream->rewind()); in DEF_TEST()
306 REPORTER_ASSERT(reporter, N*26 == buffer.size()); in DEF_TEST()
317 REPORTER_ASSERT(r, iter.data()); in DEF_TEST()
318 REPORTER_ASSERT(r, iter.size() == 26); in DEF_TEST()
321 REPORTER_ASSERT(r, !iter.next()); in DEF_TEST()
322 REPORTER_ASSERT(r, 0 == iter.size()); in DEF_TEST()
329 REPORTER_ASSERT(r, 0 == buffer.size()); in DEF_TEST()
332 REPORTER_ASSERT(r, roBuffer); in DEF_TEST()
334 REPORTER_ASSERT(r, roBuffer->size() == 0); in DEF_TEST()
336 REPORTER_ASSERT(r, iter.size() == 0); in DEF_TEST()
337 REPORTER_ASSERT(r, !iter.data()); in DEF_TEST()
338 REPORTER_ASSERT(r, !iter.next()); in DEF_TEST()
342 REPORTER_ASSERT(r, stream); in DEF_TEST()
344 REPORTER_ASSERT(r, stream->hasLength()); in DEF_TEST()
345 REPORTER_ASSERT(r, stream->getLength() == 0); in DEF_TEST()
346 REPORTER_ASSERT(r, stream->skip(10) == 0); in DEF_TEST()