exercism

Exercism solutions.
git clone git://code.dwrz.net/exercism
Log | Files | Refs

test_hello_world.c (325B)


      1 #include <stddef.h>
      2 #include "vendor/unity.h"
      3 #include "../src/hello_world.h"
      4 
      5 void setUp(void)
      6 {
      7 }
      8 
      9 void tearDown(void)
     10 {
     11 }
     12 
     13 void test_hello(void)
     14 {
     15    TEST_ASSERT_EQUAL_STRING("Hello, World!", hello());
     16 }
     17 
     18 int main(void)
     19 {
     20    UnityBegin("test/test_hello_world.c");
     21 
     22    RUN_TEST(test_hello);
     23 
     24    UnityEnd();
     25 
     26    return 0;
     27 }