Skip to content

Instantly share code, notes, and snippets.

@gabrielfalcao
Created November 23, 2012 23:11
Show Gist options
  • Save gabrielfalcao/4137666 to your computer and use it in GitHub Desktop.
Save gabrielfalcao/4137666 to your computer and use it in GitHub Desktop.
#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