Added test cases for floats

This commit is contained in:
2022-02-13 23:40:16 +01:00
parent 9bf3e63058
commit 9c22b2a084
3 changed files with 67 additions and 22 deletions

View File

@@ -5,7 +5,7 @@
using namespace const_fmt;
int main() {
constexpr auto s = "abcdef {:9.3}"_const_fmt(-876.3);
constexpr auto s = "abcdef {:09.2}"_const_fmt(-876.3);
// Convert s (with a type of 'std::array<char, N>') into something
// writable to std::cout