Skip to content

Instantly share code, notes, and snippets.

@jonm
Created November 8, 2015 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonm/27645717804b52aafd69 to your computer and use it in GitHub Desktop.
Save jonm/27645717804b52aafd69 to your computer and use it in GitHub Desktop.
Test(act_wizard, dsearch_double_substitution) {
char arg[255], dst[255];
sprintf(arg, "Someone ~N~N appears!");
dsearch(arg, dst);
cr_assert_str_eq(dst, "Someone $n$n appears!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment