Sha256: 075588e288e876b127b2f061789ba03c0dbe9e6a6844be7615942e81857543cc

Contents?: true

Size: 707 Bytes

Versions: 12

Compression:

Stored size: 707 Bytes

Contents

#ifndef CMARK_API_TEST_HARNESS_H
#define CMARK_API_TEST_HARNESS_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
	int test_num;
	int num_passed;
	int num_failed;
	int num_skipped;
} test_batch_runner;

test_batch_runner*
test_batch_runner_new();

void
SKIP(test_batch_runner *runner, int num_tests);

void
OK(test_batch_runner *runner, int cond, const char *msg, ...);

void
INT_EQ(test_batch_runner *runner, int got, int expected, const char *msg, ...);

void
STR_EQ(test_batch_runner *runner, const char *got, const char *expected,
       const char *msg, ...);

int
test_ok(test_batch_runner *runner);

void
test_print_summary(test_batch_runner *runner);

#ifdef __cplusplus
}
#endif

#endif

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
commonmarker-0.5.1 ext/commonmarker/cmark/api_test/harness.h
commonmarker-0.5.0 ext/commonmarker/cmark/api_test/harness.h
commonmarker-0.4.1 ext/commonmarker/cmark/api_test/harness.h
commonmarker-0.4.0 ext/commonmarker/cmark/api_test/harness.h
commonmarker-0.3.0 ext/commonmarker/cmark/api_test/harness.h
commonmarker-0.2.1 ext/commonmarker/cmark/api_test/harness.h
commonmarker-0.2.0 ext/commonmarker/cmark/api_test/harness.h
commonmarker-0.1.3 ext/commonmarker/cmark/api_test/harness.h
commonmarker-0.1.2 ext/commonmarker/cmark/api_test/harness.h
commonmarker-0.1.1 ext/commonmarker/cmark/api_test/harness.h
commonmarker-0.1.0 ext/commonmarker/cmark/api_test/harness.h
commonmarker-0.0.1 ext/commonmarker/cmark/api_test/harness.h