memgraph/tests/unit/template_engine.cpp

16 lines
397 B
C++
Raw Normal View History

2016-12-23 02:28:21 +08:00
#include "gtest/gtest.h"
#include "template_engine/engine.hpp"
TEST(TemplateEngine, BasicPlaceholderReplacement) {
auto rendered = template_engine::Render("{{one}} {{two}}",
{{"one", "two"}, {"two", "one"}});
ASSERT_EQ(rendered, "two one");
2016-12-23 02:28:21 +08:00
}
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}