25 lines
336 B
C++
25 lines
336 B
C++
#include "unity.h"
|
|
#include "unity_internals.h"
|
|
|
|
void setUp() { }
|
|
void tearDown() { }
|
|
|
|
void test_SUCCESS(void)
|
|
{
|
|
TEST_ASSERT_EQUAL_INT(4, 2+2);
|
|
}
|
|
|
|
void test_FAILURE(void)
|
|
{
|
|
TEST_ASSERT_EQUAL_INT(4, 2+3);
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
UNITY_BEGIN();
|
|
RUN_TEST(test_SUCCESS);
|
|
RUN_TEST(test_FAILURE);
|
|
return UNITY_END();
|
|
}
|
|
|