mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-07-06 01:55:15 +08:00
18 lines
334 B
C
18 lines
334 B
C
#include "unity.h"
|
|
|
|
/* Support for Meta Test Rig */
|
|
#ifndef TEST_CASE
|
|
#define TEST_CASE(...)
|
|
#endif
|
|
#ifndef TEST_RANGE
|
|
#define TEST_RANGE(...)
|
|
#endif
|
|
|
|
TEST_CASE(1, 2, 5)
|
|
TEST_CASE(10, 7, 20)
|
|
TEST_RANGE([3, 4, 1], [10, 5, -2], <30, 31, 1>)
|
|
void test_demoParamFunction(int a, int b, int c)
|
|
{
|
|
TEST_ASSERT_GREATER_THAN_INT(a + b, c);
|
|
}
|