forked from json-c/json-c
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testcases passed (printbuffer default size 32/128)
- Loading branch information
1 parent
d6b968d
commit df95988
Showing
3 changed files
with
166 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
test_basic_printbuf_memset: starting test | ||
Buffer contents:blue:1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
test_basic_printbuf_memset: end test | ||
======================================== | ||
test_printbuf_memset_length: starting test | ||
Buffer length: 0 | ||
Buffer length: 12 | ||
Buffer length: 18 | ||
Buffer length: 76 | ||
Buffer length: 76 | ||
Buffer length: 77 | ||
test_printbuf_memset_length: end test | ||
======================================== | ||
test_printbuf_memappend: starting test | ||
Buffer length: 0 | ||
Appended 32 bytes for resize: [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] | ||
Partial append: 3, [blu] | ||
With embedded \0 character: 4, [ab] | ||
Append to just before resize: 31, [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX] | ||
Append to just after resize: 32, [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX] | ||
Buffer size after printbuf_strappend(): 16, [XXXXXXXXXXXXXXXX] | ||
test_printbuf_memappend: end test | ||
======================================== | ||
test_sprintbuf: starting test | ||
Buffer length: 0 | ||
sprintbuf to just after resize(31+1): 32, [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX], strlen(buf)=32 | ||
5, [plain] | ||
6, [plain1] | ||
16, [plain12147483647] | ||
27, [plain12147483647-2147483648] | ||
29, [plain12147483647-2147483648%s] | ||
test_sprintbuf: end test | ||
======================================== |