zstring: Add fmt formatter
Change-Id: I5947dc2efa452149f412250134d4a041cee04bc2
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/zstring_view.cpp b/test/zstring_view.cpp
index 84b7cb8..95e9aa5 100644
--- a/test/zstring_view.cpp
+++ b/test/zstring_view.cpp
@@ -1,3 +1,4 @@
+#include <fmt/format.h>
#include <gtest/gtest.h>
#include <iostream>
#include <set>
@@ -49,6 +50,7 @@
EXPECT_LE(sv, s1);
std::cerr << s1;
+ EXPECT_EQ("bac", fmt::format("b{}", s1));
std::unordered_set<zstring_view> uset{s1, s2};
EXPECT_EQ(1, uset.count("ac"));