Created
November 23, 2012 23:11
-
-
Save gabrielfalcao/4137666 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include "converter.c" | |
void test_works_with_1_character(){ | |
/* prepare the test */ | |
char *expected = "one dollar"; | |
char *given = convert_to_textual(1); | |
/* execute the test */ | |
printf("It should work if you type 1 character... "); | |
assert(strcmp(expected, given) == 0); | |
printf("OK\n"); | |
/* compare the test */ | |
} | |
int main (){ | |
test_works_with_1_character(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment