34 * All options described below should be passed as a compiler flag to all files using Unity. If you must add #defines, place them BEFORE the #include above.
35
36 * Integers/longs/pointers
37 * - Unity attempts to automatically discover your integer sizes
38 * - define UNITY_EXCLUDE_STDINT_H to stop attempting to look in <stdint.h>
39 * - define UNITY_EXCLUDE_LIMITS_H to stop attempting to look in <limits.h>
40 * - define UNITY_EXCLUDE_SIZEOF to stop attempting to use sizeof in macros
41 * - If you cannot use the automatic methods above, you can force Unity by using these options:
42 * - define UNITY_SUPPORT_64
43 * - define UNITY_INT_WIDTH
44 * - UNITY_LONG_WIDTH
45 * - UNITY_POINTER_WIDTH
46
47 * Floats
48 * - define UNITY_EXCLUDE_FLOAT to disallow floating point comparisons
49 * - define UNITY_FLOAT_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_FLOAT
50 * - define UNITY_FLOAT_TYPE to specify doubles instead of single precision floats
51 * - define UNITY_FLOAT_VERBOSE to print floating point values in errors (uses sprintf)
52 * - define UNITY_INCLUDE_DOUBLE to allow double floating point comparisons
53 * - define UNITY_EXCLUDE_DOUBLE to disallow double floating point comparisons (default)
54 * - define UNITY_DOUBLE_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_DOUBLE
55 * - define UNITY_DOUBLE_TYPE to specify something other than double
56 * - define UNITY_DOUBLE_VERBOSE to print floating point values in errors (uses sprintf)
57 * - define UNITY_VERBOSE_NUMBER_MAX_LENGTH to change maximum length of printed numbers (used by sprintf)
58
59 * Output
60 * - by default, Unity prints to standard out with putchar. define UNITY_OUTPUT_CHAR(a) with a different function if desired
61 * - define UNITY_DIFFERENTIATE_FINAL_FAIL to print FAILED (vs. FAIL) at test end summary - for automated search for failure
62
63 * Optimization
64 * - by default, line numbers are stored in unsigned shorts. Define UNITY_LINE_TYPE with a different type if your files are huge
65 * - by default, test and failure counters are unsigned shorts. Define UNITY_COUNTER_TYPE with a different type if you want to save space or have more than 65535 Tests.
66
67 * Test Cases
68 * - define UNITY_SUPPORT_TEST_CASES to include the TEST_CASE macro, though really it's mostly about the runner generator script
69
70 * Parameterized Tests
71 * - you'll want to create a define of TEST_CASE(...) which basically evaluates to nothing
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.