Add c/hello-world

This commit is contained in:
dwrz
2019-02-23 15:53:37 +00:00
parent 9a210a1bb9
commit 447309177f
9 changed files with 2392 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#include <stddef.h>
#include "vendor/unity.h"
#include "../src/hello_world.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_hello(void)
{
TEST_ASSERT_EQUAL_STRING("Hello, World!", hello());
}
int main(void)
{
UnityBegin("test/test_hello_world.c");
RUN_TEST(test_hello);
UnityEnd();
return 0;
}