File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -337,11 +337,10 @@ FOSSIL_TEST(c_test_cstring_strip_quotes) {
337
337
338
338
FOSSIL_TEST (c_test_cstring_append ) {
339
339
cstring str = fossil_io_cstring_create ("Hello" );
340
- cstring result = fossil_io_cstring_append (str , ", World!" );
340
+ cstring result = fossil_io_cstring_append (& str , ", World!" );
341
341
ASSUME_NOT_CNULL (result );
342
342
ASSUME_ITS_EQUAL_CSTR ("Hello, World!" , result );
343
343
fossil_io_cstring_free (str );
344
- fossil_io_cstring_free (result );
345
344
}
346
345
347
346
// * * * * * * * * * * * * * * * * * * * * * * * *
Original file line number Diff line number Diff line change @@ -304,11 +304,11 @@ FOSSIL_TEST(cpp_test_cstring_strip_quotes) {
304
304
305
305
FOSSIL_TEST (cpp_test_cstring_append) {
306
306
cstring str = fossil_io_cstring_create (" Hello" );
307
- cstring result = fossil_io_cstring_append (str, " , World!" );
308
- ASSUME_NOT_CNULL (result);
309
- ASSUME_ITS_EQUAL_CSTR (" Hello, World!" , result);
307
+ int rc = fossil_io_cstring_append (&str, " , World!" );
308
+ ASSUME_ITS_EQUAL_I32 (0 , rc);
309
+ ASSUME_NOT_CNULL (str);
310
+ ASSUME_ITS_EQUAL_CSTR (" Hello, World!" , str);
310
311
fossil_io_cstring_free (str);
311
- fossil_io_cstring_free (result);
312
312
}
313
313
314
314
FOSSIL_TEST (cpp_test_cstring_stream_create_and_free) {
You can’t perform that action at this time.
0 commit comments