ulib/tests/3party/inja/inja_unittest.cpp
2024-01-05 09:42:29 +08:00

12 lines
214 B
C++

#include <gtest/gtest.h>
#include <inja.hpp>
TEST(inja, base)
{
inja::json data;
data["name"] = "world";
std::string str = inja::render("Hello {{ name }}", data);
EXPECT_EQ(str, "Hello world");
}