Skip to content

Instantly share code, notes, and snippets.

@alyx
Created July 12, 2012 16:34
Show Gist options
  • Save alyx/3099188 to your computer and use it in GitHub Desktop.
Save alyx/3099188 to your computer and use it in GitHub Desktop.
START_TEST (test_str_append)
{
CorcString *cs;
cs = corcstr_create();
corcstr_append(cs, "moo", 3);
fail_if(strcmp(cs->string, "moo") != 0,
"CorcString appending failed!");
corcstr_append_char(cs, ' ');
fail_if(strcmp(cs->string, "moo ") != 0,
"CorcString single-character appending failed: \"%s\"", cs->string);
}
END_TEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment