From 46d4838ac8ff1bd8658b57cf4ebb4438e396fce8 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 14 Sep 2021 22:10:02 +0800 Subject: ... --- test/common/StringTest.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/common/StringTest.cpp (limited to 'test/common/StringTest.cpp') 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 + +TEST(String, Format) { + using cru::Format; + + ASSERT_EQ(Format(u"{} + {} = {}", 123, 321, 444), u"123 + 321 = 444"); +} -- cgit v1.2.3