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

Version Path
trackler-2.2.1.39 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.38 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.37 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.36 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.35 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.34 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.33 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.32 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.31 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.30 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.29 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.28 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.27 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.26 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.25 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.24 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.23 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.22 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.21 tracks/c/exercises/hello-world/test/test_hello_world.c
trackler-2.2.1.20 tracks/c/exercises/hello-world/test/test_hello_world.c