This is an example of BLE GATT Client, which receives broadcast data from BLE_Server_BME280 ( a GATT server) , then transfers values up to mbed Device Connector (cloud).
Please refer details about BLEClient_mbedDevConn below. https://github.com/soramame21/BLEClient_mbedDevConn
The location of required BLE GATT server, BLE_Server_BME280, is at here. https://developer.mbed.org/users/edamame22/code/BLE_Server_BME280/
pal/Test/Unity/src/unity.h@0:29983394c6b6, 2017-04-13 (annotated)
- Committer:
- edamame22
- Date:
- Thu Apr 13 04:48:11 2017 +0000
- Revision:
- 0:29983394c6b6
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
edamame22 | 0:29983394c6b6 | 1 | /* ========================================== |
edamame22 | 0:29983394c6b6 | 2 | Unity Project - A Test Framework for C |
edamame22 | 0:29983394c6b6 | 3 | Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams |
edamame22 | 0:29983394c6b6 | 4 | [Released under MIT License. Please refer to license.txt for details] |
edamame22 | 0:29983394c6b6 | 5 | ========================================== */ |
edamame22 | 0:29983394c6b6 | 6 | |
edamame22 | 0:29983394c6b6 | 7 | #ifndef UNITY_FRAMEWORK_H |
edamame22 | 0:29983394c6b6 | 8 | #define UNITY_FRAMEWORK_H |
edamame22 | 0:29983394c6b6 | 9 | #define UNITY |
edamame22 | 0:29983394c6b6 | 10 | |
edamame22 | 0:29983394c6b6 | 11 | #ifdef __cplusplus |
edamame22 | 0:29983394c6b6 | 12 | extern "C" |
edamame22 | 0:29983394c6b6 | 13 | { |
edamame22 | 0:29983394c6b6 | 14 | #endif |
edamame22 | 0:29983394c6b6 | 15 | |
edamame22 | 0:29983394c6b6 | 16 | #include "unity_internals.h" |
edamame22 | 0:29983394c6b6 | 17 | |
edamame22 | 0:29983394c6b6 | 18 | void setUp(void); |
edamame22 | 0:29983394c6b6 | 19 | void tearDown(void); |
edamame22 | 0:29983394c6b6 | 20 | |
edamame22 | 0:29983394c6b6 | 21 | /*------------------------------------------------------- |
edamame22 | 0:29983394c6b6 | 22 | * Configuration Options |
edamame22 | 0:29983394c6b6 | 23 | *------------------------------------------------------- |
edamame22 | 0:29983394c6b6 | 24 | * 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. |
edamame22 | 0:29983394c6b6 | 25 | |
edamame22 | 0:29983394c6b6 | 26 | * Integers/longs/pointers |
edamame22 | 0:29983394c6b6 | 27 | * - Unity attempts to automatically discover your integer sizes |
edamame22 | 0:29983394c6b6 | 28 | * - define UNITY_EXCLUDE_STDINT_H to stop attempting to look in <stdint.h> |
edamame22 | 0:29983394c6b6 | 29 | * - define UNITY_EXCLUDE_LIMITS_H to stop attempting to look in <limits.h> |
edamame22 | 0:29983394c6b6 | 30 | * - define UNITY_EXCLUDE_SIZEOF to stop attempting to use sizeof in macros |
edamame22 | 0:29983394c6b6 | 31 | * - If you cannot use the automatic methods above, you can force Unity by using these options: |
edamame22 | 0:29983394c6b6 | 32 | * - define UNITY_SUPPORT_64 |
edamame22 | 0:29983394c6b6 | 33 | * - define UNITY_INT_WIDTH |
edamame22 | 0:29983394c6b6 | 34 | * - UNITY_LONG_WIDTH |
edamame22 | 0:29983394c6b6 | 35 | * - UNITY_POINTER_WIDTH |
edamame22 | 0:29983394c6b6 | 36 | |
edamame22 | 0:29983394c6b6 | 37 | * Floats |
edamame22 | 0:29983394c6b6 | 38 | * - define UNITY_EXCLUDE_FLOAT to disallow floating point comparisons |
edamame22 | 0:29983394c6b6 | 39 | * - define UNITY_FLOAT_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_FLOAT |
edamame22 | 0:29983394c6b6 | 40 | * - define UNITY_FLOAT_TYPE to specify doubles instead of single precision floats |
edamame22 | 0:29983394c6b6 | 41 | * - define UNITY_FLOAT_VERBOSE to print floating point values in errors (uses sprintf) |
edamame22 | 0:29983394c6b6 | 42 | * - define UNITY_INCLUDE_DOUBLE to allow double floating point comparisons |
edamame22 | 0:29983394c6b6 | 43 | * - define UNITY_EXCLUDE_DOUBLE to disallow double floating point comparisons (default) |
edamame22 | 0:29983394c6b6 | 44 | * - define UNITY_DOUBLE_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_DOUBLE |
edamame22 | 0:29983394c6b6 | 45 | * - define UNITY_DOUBLE_TYPE to specify something other than double |
edamame22 | 0:29983394c6b6 | 46 | * - define UNITY_DOUBLE_VERBOSE to print floating point values in errors (uses sprintf) |
edamame22 | 0:29983394c6b6 | 47 | * - define UNITY_VERBOSE_NUMBER_MAX_LENGTH to change maximum length of printed numbers (used by sprintf) |
edamame22 | 0:29983394c6b6 | 48 | |
edamame22 | 0:29983394c6b6 | 49 | * Output |
edamame22 | 0:29983394c6b6 | 50 | * - by default, Unity prints to standard out with putchar. define UNITY_OUTPUT_CHAR(a) with a different function if desired |
edamame22 | 0:29983394c6b6 | 51 | * - define UNITY_DIFFERENTIATE_FINAL_FAIL to print FAILED (vs. FAIL) at test end summary - for automated search for failure |
edamame22 | 0:29983394c6b6 | 52 | |
edamame22 | 0:29983394c6b6 | 53 | * Optimization |
edamame22 | 0:29983394c6b6 | 54 | * - by default, line numbers are stored in unsigned shorts. Define UNITY_LINE_TYPE with a different type if your files are huge |
edamame22 | 0:29983394c6b6 | 55 | * - 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. |
edamame22 | 0:29983394c6b6 | 56 | |
edamame22 | 0:29983394c6b6 | 57 | * Test Cases |
edamame22 | 0:29983394c6b6 | 58 | * - define UNITY_SUPPORT_TEST_CASES to include the TEST_CASE macro, though really it's mostly about the runner generator script |
edamame22 | 0:29983394c6b6 | 59 | |
edamame22 | 0:29983394c6b6 | 60 | * Parameterized Tests |
edamame22 | 0:29983394c6b6 | 61 | * - you'll want to create a define of TEST_CASE(...) which basically evaluates to nothing |
edamame22 | 0:29983394c6b6 | 62 | |
edamame22 | 0:29983394c6b6 | 63 | *------------------------------------------------------- |
edamame22 | 0:29983394c6b6 | 64 | * Basic Fail and Ignore |
edamame22 | 0:29983394c6b6 | 65 | *-------------------------------------------------------*/ |
edamame22 | 0:29983394c6b6 | 66 | |
edamame22 | 0:29983394c6b6 | 67 | #define TEST_FAIL_MESSAGE(message) UNITY_TEST_FAIL(__LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 68 | #define TEST_FAIL() UNITY_TEST_FAIL(__LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 69 | #define TEST_IGNORE_MESSAGE(message) UNITY_TEST_IGNORE(__LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 70 | #define TEST_IGNORE() UNITY_TEST_IGNORE(__LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 71 | #define TEST_ONLY() |
edamame22 | 0:29983394c6b6 | 72 | |
edamame22 | 0:29983394c6b6 | 73 | /* It is not necessary for you to call PASS. A PASS condition is assumed if nothing fails. |
edamame22 | 0:29983394c6b6 | 74 | * This method allows you to abort a test immediately with a PASS state, ignoring the remainder of the test. */ |
edamame22 | 0:29983394c6b6 | 75 | #define TEST_PASS() longjmp(Unity.AbortFrame, 1) |
edamame22 | 0:29983394c6b6 | 76 | |
edamame22 | 0:29983394c6b6 | 77 | /*------------------------------------------------------- |
edamame22 | 0:29983394c6b6 | 78 | * Test Asserts (simple) |
edamame22 | 0:29983394c6b6 | 79 | *-------------------------------------------------------*/ |
edamame22 | 0:29983394c6b6 | 80 | |
edamame22 | 0:29983394c6b6 | 81 | /* Boolean */ |
edamame22 | 0:29983394c6b6 | 82 | #define TEST_ASSERT(condition) UNITY_TEST_ASSERT( (condition), __LINE__, " Expression Evaluated To FALSE") |
edamame22 | 0:29983394c6b6 | 83 | #define TEST_ASSERT_TRUE(condition) UNITY_TEST_ASSERT( (condition), __LINE__, " Expected TRUE Was FALSE") |
edamame22 | 0:29983394c6b6 | 84 | #define TEST_ASSERT_UNLESS(condition) UNITY_TEST_ASSERT( !(condition), __LINE__, " Expression Evaluated To TRUE") |
edamame22 | 0:29983394c6b6 | 85 | #define TEST_ASSERT_FALSE(condition) UNITY_TEST_ASSERT( !(condition), __LINE__, " Expected FALSE Was TRUE") |
edamame22 | 0:29983394c6b6 | 86 | #define TEST_ASSERT_NULL(pointer) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, " Expected NULL") |
edamame22 | 0:29983394c6b6 | 87 | #define TEST_ASSERT_NOT_NULL(pointer) UNITY_TEST_ASSERT_NOT_NULL((pointer), __LINE__, " Expected Non-NULL") |
edamame22 | 0:29983394c6b6 | 88 | |
edamame22 | 0:29983394c6b6 | 89 | /* Integers (of all sizes) */ |
edamame22 | 0:29983394c6b6 | 90 | #define TEST_ASSERT_EQUAL_INT(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 91 | #define TEST_ASSERT_EQUAL_INT8(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 92 | #define TEST_ASSERT_EQUAL_INT16(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 93 | #define TEST_ASSERT_EQUAL_INT32(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT32((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 94 | #define TEST_ASSERT_EQUAL_INT64(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT64((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 95 | #define TEST_ASSERT_EQUAL(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 96 | #define TEST_ASSERT_NOT_EQUAL(expected, actual) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, " Expected Not-Equal") |
edamame22 | 0:29983394c6b6 | 97 | #define TEST_ASSERT_EQUAL_UINT(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT( (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 98 | #define TEST_ASSERT_EQUAL_UINT8(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT8( (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 99 | #define TEST_ASSERT_EQUAL_UINT16(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT16( (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 100 | #define TEST_ASSERT_EQUAL_UINT32(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT32( (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 101 | #define TEST_ASSERT_EQUAL_UINT64(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT64( (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 102 | #define TEST_ASSERT_EQUAL_HEX(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 103 | #define TEST_ASSERT_EQUAL_HEX8(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX8( (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 104 | #define TEST_ASSERT_EQUAL_HEX16(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX16((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 105 | #define TEST_ASSERT_EQUAL_HEX32(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 106 | #define TEST_ASSERT_EQUAL_HEX64(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX64((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 107 | #define TEST_ASSERT_BITS(mask, expected, actual) UNITY_TEST_ASSERT_BITS((mask), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 108 | #define TEST_ASSERT_BITS_HIGH(mask, actual) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(-1), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 109 | #define TEST_ASSERT_BITS_LOW(mask, actual) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(0), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 110 | #define TEST_ASSERT_BIT_HIGH(bit, actual) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(-1), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 111 | #define TEST_ASSERT_BIT_LOW(bit, actual) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(0), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 112 | |
edamame22 | 0:29983394c6b6 | 113 | /* Integer Ranges (of all sizes) */ |
edamame22 | 0:29983394c6b6 | 114 | #define TEST_ASSERT_INT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 115 | #define TEST_ASSERT_INT8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT8_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 116 | #define TEST_ASSERT_INT16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT16_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 117 | #define TEST_ASSERT_INT32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT32_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 118 | #define TEST_ASSERT_INT64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT64_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 119 | #define TEST_ASSERT_UINT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 120 | #define TEST_ASSERT_UINT8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT8_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 121 | #define TEST_ASSERT_UINT16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT16_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 122 | #define TEST_ASSERT_UINT32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT32_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 123 | #define TEST_ASSERT_UINT64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT64_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 124 | #define TEST_ASSERT_HEX_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 125 | #define TEST_ASSERT_HEX8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX8_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 126 | #define TEST_ASSERT_HEX16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX16_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 127 | #define TEST_ASSERT_HEX32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 128 | #define TEST_ASSERT_HEX64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX64_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 129 | |
edamame22 | 0:29983394c6b6 | 130 | /* Structs and Strings */ |
edamame22 | 0:29983394c6b6 | 131 | #define TEST_ASSERT_EQUAL_PTR(expected, actual) UNITY_TEST_ASSERT_EQUAL_PTR((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 132 | #define TEST_ASSERT_EQUAL_STRING(expected, actual) UNITY_TEST_ASSERT_EQUAL_STRING((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 133 | #define TEST_ASSERT_EQUAL_STRING_LEN(expected, actual, len) UNITY_TEST_ASSERT_EQUAL_STRING_LEN((expected), (actual), (len), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 134 | #define TEST_ASSERT_EQUAL_MEMORY(expected, actual, len) UNITY_TEST_ASSERT_EQUAL_MEMORY((expected), (actual), (len), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 135 | |
edamame22 | 0:29983394c6b6 | 136 | /* Arrays */ |
edamame22 | 0:29983394c6b6 | 137 | #define TEST_ASSERT_EQUAL_INT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 138 | #define TEST_ASSERT_EQUAL_INT8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 139 | #define TEST_ASSERT_EQUAL_INT16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 140 | #define TEST_ASSERT_EQUAL_INT32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 141 | #define TEST_ASSERT_EQUAL_INT64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 142 | #define TEST_ASSERT_EQUAL_UINT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 143 | #define TEST_ASSERT_EQUAL_UINT8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 144 | #define TEST_ASSERT_EQUAL_UINT16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 145 | #define TEST_ASSERT_EQUAL_UINT32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 146 | #define TEST_ASSERT_EQUAL_UINT64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 147 | #define TEST_ASSERT_EQUAL_HEX_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 148 | #define TEST_ASSERT_EQUAL_HEX8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 149 | #define TEST_ASSERT_EQUAL_HEX16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX16_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 150 | #define TEST_ASSERT_EQUAL_HEX32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 151 | #define TEST_ASSERT_EQUAL_HEX64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 152 | #define TEST_ASSERT_EQUAL_PTR_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_PTR_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 153 | #define TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 154 | #define TEST_ASSERT_EQUAL_MEMORY_ARRAY(expected, actual, len, num_elements) UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((expected), (actual), (len), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 155 | |
edamame22 | 0:29983394c6b6 | 156 | /* Floating Point (If Enabled) */ |
edamame22 | 0:29983394c6b6 | 157 | #define TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_FLOAT_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 158 | #define TEST_ASSERT_EQUAL_FLOAT(expected, actual) UNITY_TEST_ASSERT_EQUAL_FLOAT((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 159 | #define TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 160 | #define TEST_ASSERT_FLOAT_IS_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_INF((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 161 | #define TEST_ASSERT_FLOAT_IS_NEG_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 162 | #define TEST_ASSERT_FLOAT_IS_NAN(actual) UNITY_TEST_ASSERT_FLOAT_IS_NAN((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 163 | #define TEST_ASSERT_FLOAT_IS_DETERMINATE(actual) UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 164 | #define TEST_ASSERT_FLOAT_IS_NOT_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 165 | #define TEST_ASSERT_FLOAT_IS_NOT_NEG_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 166 | #define TEST_ASSERT_FLOAT_IS_NOT_NAN(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 167 | #define TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 168 | |
edamame22 | 0:29983394c6b6 | 169 | /* Double (If Enabled) */ |
edamame22 | 0:29983394c6b6 | 170 | #define TEST_ASSERT_DOUBLE_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_DOUBLE_WITHIN((delta), (expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 171 | #define TEST_ASSERT_EQUAL_DOUBLE(expected, actual) UNITY_TEST_ASSERT_EQUAL_DOUBLE((expected), (actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 172 | #define TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY((expected), (actual), (num_elements), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 173 | #define TEST_ASSERT_DOUBLE_IS_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_INF((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 174 | #define TEST_ASSERT_DOUBLE_IS_NEG_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 175 | #define TEST_ASSERT_DOUBLE_IS_NAN(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NAN((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 176 | #define TEST_ASSERT_DOUBLE_IS_DETERMINATE(actual) UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 177 | #define TEST_ASSERT_DOUBLE_IS_NOT_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 178 | #define TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 179 | #define TEST_ASSERT_DOUBLE_IS_NOT_NAN(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 180 | #define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, NULL) |
edamame22 | 0:29983394c6b6 | 181 | |
edamame22 | 0:29983394c6b6 | 182 | /*------------------------------------------------------- |
edamame22 | 0:29983394c6b6 | 183 | * Test Asserts (with additional messages) |
edamame22 | 0:29983394c6b6 | 184 | *-------------------------------------------------------*/ |
edamame22 | 0:29983394c6b6 | 185 | |
edamame22 | 0:29983394c6b6 | 186 | /* Boolean */ |
edamame22 | 0:29983394c6b6 | 187 | #define TEST_ASSERT_MESSAGE(condition, message) UNITY_TEST_ASSERT( (condition), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 188 | #define TEST_ASSERT_TRUE_MESSAGE(condition, message) UNITY_TEST_ASSERT( (condition), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 189 | #define TEST_ASSERT_UNLESS_MESSAGE(condition, message) UNITY_TEST_ASSERT( !(condition), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 190 | #define TEST_ASSERT_FALSE_MESSAGE(condition, message) UNITY_TEST_ASSERT( !(condition), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 191 | #define TEST_ASSERT_NULL_MESSAGE(pointer, message) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 192 | #define TEST_ASSERT_NOT_NULL_MESSAGE(pointer, message) UNITY_TEST_ASSERT_NOT_NULL((pointer), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 193 | |
edamame22 | 0:29983394c6b6 | 194 | /* Integers (of all sizes) */ |
edamame22 | 0:29983394c6b6 | 195 | #define TEST_ASSERT_EQUAL_INT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 196 | #define TEST_ASSERT_EQUAL_INT8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 197 | #define TEST_ASSERT_EQUAL_INT16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 198 | #define TEST_ASSERT_EQUAL_INT32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT32((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 199 | #define TEST_ASSERT_EQUAL_INT64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT64((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 200 | #define TEST_ASSERT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 201 | #define TEST_ASSERT_NOT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 202 | #define TEST_ASSERT_EQUAL_UINT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT( (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 203 | #define TEST_ASSERT_EQUAL_UINT8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT8( (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 204 | #define TEST_ASSERT_EQUAL_UINT16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT16( (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 205 | #define TEST_ASSERT_EQUAL_UINT32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT32( (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 206 | #define TEST_ASSERT_EQUAL_UINT64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT64( (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 207 | #define TEST_ASSERT_EQUAL_HEX_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 208 | #define TEST_ASSERT_EQUAL_HEX8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX8( (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 209 | #define TEST_ASSERT_EQUAL_HEX16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX16((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 210 | #define TEST_ASSERT_EQUAL_HEX32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 211 | #define TEST_ASSERT_EQUAL_HEX64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX64((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 212 | #define TEST_ASSERT_BITS_MESSAGE(mask, expected, actual, message) UNITY_TEST_ASSERT_BITS((mask), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 213 | #define TEST_ASSERT_BITS_HIGH_MESSAGE(mask, actual, message) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(-1), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 214 | #define TEST_ASSERT_BITS_LOW_MESSAGE(mask, actual, message) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(0), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 215 | #define TEST_ASSERT_BIT_HIGH_MESSAGE(bit, actual, message) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(-1), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 216 | #define TEST_ASSERT_BIT_LOW_MESSAGE(bit, actual, message) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(0), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 217 | |
edamame22 | 0:29983394c6b6 | 218 | /* Integer Ranges (of all sizes) */ |
edamame22 | 0:29983394c6b6 | 219 | #define TEST_ASSERT_INT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 220 | #define TEST_ASSERT_INT8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT8_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 221 | #define TEST_ASSERT_INT16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT16_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 222 | #define TEST_ASSERT_INT32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT32_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 223 | #define TEST_ASSERT_INT64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT64_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 224 | #define TEST_ASSERT_UINT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 225 | #define TEST_ASSERT_UINT8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT8_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 226 | #define TEST_ASSERT_UINT16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT16_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 227 | #define TEST_ASSERT_UINT32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT32_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 228 | #define TEST_ASSERT_UINT64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT64_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 229 | #define TEST_ASSERT_HEX_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 230 | #define TEST_ASSERT_HEX8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX8_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 231 | #define TEST_ASSERT_HEX16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX16_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 232 | #define TEST_ASSERT_HEX32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 233 | #define TEST_ASSERT_HEX64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX64_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 234 | |
edamame22 | 0:29983394c6b6 | 235 | /* Structs and Strings */ |
edamame22 | 0:29983394c6b6 | 236 | #define TEST_ASSERT_EQUAL_PTR_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_PTR((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 237 | #define TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_STRING((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 238 | #define TEST_ASSERT_EQUAL_STRING_LEN_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_STRING_LEN((expected), (actual), (len), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 239 | #define TEST_ASSERT_EQUAL_MEMORY_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_MEMORY((expected), (actual), (len), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 240 | |
edamame22 | 0:29983394c6b6 | 241 | /* Arrays */ |
edamame22 | 0:29983394c6b6 | 242 | #define TEST_ASSERT_EQUAL_INT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 243 | #define TEST_ASSERT_EQUAL_INT8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 244 | #define TEST_ASSERT_EQUAL_INT16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 245 | #define TEST_ASSERT_EQUAL_INT32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 246 | #define TEST_ASSERT_EQUAL_INT64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 247 | #define TEST_ASSERT_EQUAL_UINT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 248 | #define TEST_ASSERT_EQUAL_UINT8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 249 | #define TEST_ASSERT_EQUAL_UINT16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 250 | #define TEST_ASSERT_EQUAL_UINT32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 251 | #define TEST_ASSERT_EQUAL_UINT64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 252 | #define TEST_ASSERT_EQUAL_HEX_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 253 | #define TEST_ASSERT_EQUAL_HEX8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 254 | #define TEST_ASSERT_EQUAL_HEX16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX16_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 255 | #define TEST_ASSERT_EQUAL_HEX32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 256 | #define TEST_ASSERT_EQUAL_HEX64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 257 | #define TEST_ASSERT_EQUAL_PTR_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_PTR_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 258 | #define TEST_ASSERT_EQUAL_STRING_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 259 | #define TEST_ASSERT_EQUAL_MEMORY_ARRAY_MESSAGE(expected, actual, len, num_elements, message) UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((expected), (actual), (len), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 260 | |
edamame22 | 0:29983394c6b6 | 261 | /* Floating Point (If Enabled) */ |
edamame22 | 0:29983394c6b6 | 262 | #define TEST_ASSERT_FLOAT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_FLOAT_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 263 | #define TEST_ASSERT_EQUAL_FLOAT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_FLOAT((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 264 | #define TEST_ASSERT_EQUAL_FLOAT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 265 | #define TEST_ASSERT_FLOAT_IS_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_INF((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 266 | #define TEST_ASSERT_FLOAT_IS_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 267 | #define TEST_ASSERT_FLOAT_IS_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NAN((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 268 | #define TEST_ASSERT_FLOAT_IS_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 269 | #define TEST_ASSERT_FLOAT_IS_NOT_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 270 | #define TEST_ASSERT_FLOAT_IS_NOT_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 271 | #define TEST_ASSERT_FLOAT_IS_NOT_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 272 | #define TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 273 | |
edamame22 | 0:29983394c6b6 | 274 | /* Double (If Enabled) */ |
edamame22 | 0:29983394c6b6 | 275 | #define TEST_ASSERT_DOUBLE_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_DOUBLE_WITHIN((delta), (expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 276 | #define TEST_ASSERT_EQUAL_DOUBLE_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_DOUBLE((expected), (actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 277 | #define TEST_ASSERT_EQUAL_DOUBLE_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY((expected), (actual), (num_elements), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 278 | #define TEST_ASSERT_DOUBLE_IS_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_INF((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 279 | #define TEST_ASSERT_DOUBLE_IS_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 280 | #define TEST_ASSERT_DOUBLE_IS_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NAN((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 281 | #define TEST_ASSERT_DOUBLE_IS_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 282 | #define TEST_ASSERT_DOUBLE_IS_NOT_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 283 | #define TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 284 | #define TEST_ASSERT_DOUBLE_IS_NOT_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 285 | #define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, (message)) |
edamame22 | 0:29983394c6b6 | 286 | |
edamame22 | 0:29983394c6b6 | 287 | /* end of UNITY_FRAMEWORK_H */ |
edamame22 | 0:29983394c6b6 | 288 | #ifdef __cplusplus |
edamame22 | 0:29983394c6b6 | 289 | } |
edamame22 | 0:29983394c6b6 | 290 | #endif |
edamame22 | 0:29983394c6b6 | 291 | #endif |