Skip to content

Instantly share code, notes, and snippets.

@jonm
Last active October 19, 2015 18:40
Show Gist options
  • Save jonm/17b4eeb026aeb2b17820 to your computer and use it in GitHub Desktop.
Save jonm/17b4eeb026aeb2b17820 to your computer and use it in GitHub Desktop.
first unit test
#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