exercism/c/hello-world/test/test_hello_world.c

28 lines
325 B
C
Raw Normal View History

2018-08-14 22:28:48 +00:00
#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;
}