5434e79ea6
Reviewers: buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D281
16 lines
397 B
C++
16 lines
397 B
C++
#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");
|
|
}
|
|
|
|
int main(int argc, char **argv) {
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
return RUN_ALL_TESTS();
|
|
}
|