zstring: Support std::format
Change-Id: I8ea0a298e438fddb61573eb8e2349ecd125e60f1
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/zstring_view.cpp b/test/zstring_view.cpp
index 0ef7fb7..f856757 100644
--- a/test/zstring_view.cpp
+++ b/test/zstring_view.cpp
@@ -2,6 +2,7 @@
#include <stdplus/zstring_view.hpp>
+#include <format>
#include <iostream>
#include <set>
#include <string>
@@ -57,6 +58,7 @@
std::cerr << s1;
EXPECT_EQ("bac", fmt::format("b{}", s1));
+ EXPECT_EQ("bac", std::format("b{}", s1));
std::unordered_set<zstring_view> uset{s1, s2};
EXPECT_EQ(1, uset.count("ac"));