You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(fmt): add unit tests for hex formatting with ipc::spec (issue mutouyun#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 mutouyun#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: mutouyun#171
0 commit comments