File: suites_with_context_api.c

package info (click to toggle)
cgreen 1.6.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,588 kB
  • sloc: ansic: 12,276; sh: 558; makefile: 474; cpp: 403; python: 181; xml: 33; sed: 13
file content (23 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <cgreen/cgreen.h>

#ifdef __cplusplus
using namespace cgreen;
#endif

Describe(context_api);
BeforeEach(context_api) {}
AfterEach(context_api) {}

// SUITES
Ensure(context_api, compiles_suite_api) {
    TestSuite *suite = create_test_suite();

    add_test_with_context(suite, context_api, compiles_suite_api);

    run_test_suite(suite, NULL);
    run_single_test(suite, "name", NULL);

    die_in(1);

    destroy_test_suite(suite);
}