Changeset 38441 for trunk/Ohana/src/libohana/test/string.c
- Timestamp:
- Jun 12, 2015, 6:18:23 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/libohana/test (modified) (1 prop)
-
src/libohana/test/string.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ohana.20150429 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/libohana/test
- Property svn:ignore
-
old new 4 4 *.darwin_x86 5 5 *.dSYM 6 memtest 7 string 8 typetest
-
- Property svn:ignore
-
trunk/Ohana/src/libohana/test/string.c
r10313 r38441 4 4 int main (void) { 5 5 6 plan_tests ( 16);6 plan_tests (20); 7 7 8 8 diag ("libohana string.c tests"); … … 67 67 skip_end(); 68 68 } 69 70 /*** strextend ***/ 71 { 72 int status; 73 char *string = NULL; 74 75 status = strextend(&string, "hello %s", "there"); 76 ok (status, "strextend for NULL input"); 77 ok (!strcmp(string, "hello there"), "strextend format"); 78 79 status = strextend(&string, "more words %d", 2); 80 ok (status, "strextend for non-NULL input"); 81 ok (!strcmp(string, "hello there more words 2"), "strextend format"); 82 } 69 83 return exit_status(); 70 84 }
Note:
See TracChangeset
for help on using the changeset viewer.
