sync
This commit is contained in:
34
C/C2/test/file_element_test.c
Normal file
34
C/C2/test/file_element_test.c
Normal file
@@ -0,0 +1,34 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "file_element.h"
|
||||
#include "unity.h"
|
||||
#include "unity_test_module.h"
|
||||
|
||||
|
||||
|
||||
// I rather dislike keeping line numbers updated, so I made my own macro to ditch the line number
|
||||
#define MY_RUN_TEST(func) RUN_TEST(func, 0)
|
||||
|
||||
void file_element_setUp(void)
|
||||
{
|
||||
// This is run before EACH test
|
||||
}
|
||||
|
||||
void file_element_tearDown(void)
|
||||
{
|
||||
// This is run after EACH test
|
||||
}
|
||||
|
||||
void test_EmptyTest_file(void)
|
||||
{
|
||||
TEST_ASSERT_EQUAL(1, 0);
|
||||
}
|
||||
|
||||
void run_file_element_tests()
|
||||
{
|
||||
UnityRegisterSetupTearDown( file_element_setUp, file_element_tearDown);
|
||||
|
||||
MY_RUN_TEST(test_EmptyTest_file);
|
||||
|
||||
UnityUnregisterSetupTearDown();
|
||||
}
|
||||
Reference in New Issue
Block a user