7 Commits

Author SHA1 Message Date
mutouyun
9079ca83ce test(fmt): add unit tests for hex formatting with ipc::spec (issue #171)
Add comprehensive test cases demonstrating the correct way to format
hexadecimal values using ipc::fmt and ipc::spec, addressing the MinGW
compilation failure reported in issue #171.

The tests cover:
- Basic hex formatting (lowercase/uppercase)
- Hex formatting with 0x prefix
- Mixed decimal and hex output patterns (like the problematic log calls)
- Various integer types with hex formatting
- Width and padding options

Note: ipc::spec format strings should NOT include length modifiers
(like "ll"). The to_string function automatically adds the correct
length modifier based on the argument type.

Refs: #171
2026-01-21 06:20:15 +00:00
木头云
fc7fa158b6 fix(test): Update test.h include paths after master rebase
After rebasing onto master, test.h was moved to test/archive/.
Updated include paths in test subdirectories:
- test/imp/*.cpp: "test.h" -> "../archive/test.h"
- test/mem/*.cpp: "test.h" -> "../archive/test.h"
- test/concur/*.cpp: "test.h" -> "../archive/test.h"

This ensures all test files can properly find the test header
after the directory reorganization in master branch.
2025-12-12 07:04:31 +00:00
mutouyun
9276fcbcda Fix fmt function to handle null pointers and return empty string 2025-12-12 07:04:31 +00:00
mutouyun
d00dcbbf15 Fix fmt function to handle empty strings and update make_prefix template parameters 2025-12-12 07:04:31 +00:00
mutouyun
7536757064 Optimized partial implementation using fmt 2025-12-12 07:04:31 +00:00
mutouyun
d20f88c349 Added fmt support for byte 2025-12-12 07:04:31 +00:00
mutouyun
bc29c85c1a Add fmt 2025-12-12 07:04:31 +00:00