C ordening
This commit is contained in:
31
C/C5 and C6 Adidas/test/channel_test.c
Normal file
31
C/C5 and C6 Adidas/test/channel_test.c
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "unity.h"
|
||||
#include "unity_test_module.h"
|
||||
#include "channel.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)
|
||||
|
||||
extern void channel_setUp(void)
|
||||
{
|
||||
// This is run before EACH test
|
||||
}
|
||||
|
||||
extern void channel_tearDown(void)
|
||||
{
|
||||
// This is run after EACH test
|
||||
}
|
||||
|
||||
static void test_channel(void)
|
||||
{
|
||||
TEST_ASSERT_EQUAL(1, 0);
|
||||
}
|
||||
|
||||
void run_channel_tests()
|
||||
{
|
||||
UnityRegisterSetupTearDown( channel_setUp, channel_tearDown);
|
||||
|
||||
MY_RUN_TEST(test_channel);
|
||||
|
||||
UnityUnregisterSetupTearDown();
|
||||
}
|
||||
Reference in New Issue
Block a user