Last active
October 19, 2015 18:40
-
-
Save jonm/17b4eeb026aeb2b17820 to your computer and use it in GitHub Desktop.
first unit test
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 <stdio.h> | |
#include <criterion/criterion.h> | |
void dsearch(char *, char *); | |
Test(act_wizard, dsearch_simple) { | |
char arg[255], dst[255]; | |
sprintf(arg, "Someone appears!"); | |
dsearch(arg, dst); | |
cr_assert_str_eq(dst, "Someone appears!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment