Fixed bug in hex formatting, wrote tests for hex int formatting

This commit is contained in:
2022-02-15 11:34:49 +01:00
parent 7115e09aca
commit 2933676ea2
4 changed files with 63 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
using namespace const_fmt;
int main() {
constexpr auto s = "This is an integer: {:08x}, and this is a float: {:09.4b}"_const_fmt(125u, -86.2);
constexpr auto s = "This is an integer: {:08x}, and this is a float: {:09.4b}"_const_fmt(122u, -86.2);
// Convert s (with a type of 'std::array<char, N>') into something
// writable to std::cout