test add setUp and tearDown to test template (#2648)

This commit is contained in:
Carlos Diaz
2021-10-11 07:22:55 -05:00
committed by GitHub
parent c9e3760464
commit 3b6a05e253

View File

@@ -3,8 +3,21 @@
#include "unity/unity.h"
void setUp(void);
void tearDown(void);
void test_func_1(void);
void setUp(void)
{
/* Function run before every test */
}
void tearDown(void)
{
/* Function run after every test */
}
void test_func_1(void)
{
TEST_ASSERT_EQUAL(actual, expected);