Sha256: 939f8b16d456d28c270747e4f12be625e0e5c4100d8e7bde7371e48647481769
Contents?: true
Size: 655 Bytes
Versions: 257
Compression:
Stored size: 655 Bytes
Contents
#include <stddef.h> #include "vendor/unity.h" #include "../src/hello_world.h" #define BUFFER_LENGTH 128 char buffer[BUFFER_LENGTH]; void test_hello_no_name(void) { hello(buffer, NULL); TEST_ASSERT_EQUAL_STRING("Hello, World!", buffer); } void test_hello_alice(void) { hello(buffer, "Alice"); TEST_ASSERT_EQUAL_STRING("Hello, Alice!", buffer); } void test_hello_bob(void) { hello(buffer, "Bob"); TEST_ASSERT_EQUAL_STRING("Hello, Bob!", buffer); } int main(void) { UnityBegin("test/test_hello_world.c"); RUN_TEST(test_hello_no_name); RUN_TEST(test_hello_alice); RUN_TEST(test_hello_bob); UnityEnd(); return 0; }
Version data entries
257 entries across 257 versions & 1 rubygems