test add setUp and tearDown to test template (#2648)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user