Created
July 12, 2012 16:34
-
-
Save alyx/3099188 to your computer and use it in GitHub Desktop.
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
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