aboutsummaryrefslogtreecommitdiff
path: root/test/common/StringTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/StringTest.cpp')
-rw-r--r--test/common/StringTest.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/common/StringTest.cpp b/test/common/StringTest.cpp
new file mode 100644
index 00000000..1200a60b
--- /dev/null
+++ b/test/common/StringTest.cpp
@@ -0,0 +1,9 @@
+#include "cru/common/String.hpp"
+
+#include <gtest/gtest.h>
+
+TEST(String, Format) {
+ using cru::Format;
+
+ ASSERT_EQ(Format(u"{} + {} = {}", 123, 321, 444), u"123 + 321 = 444");
+}