14 lines
329 B
C++
14 lines
329 B
C++
|
#define CATCH_CONFIG_MAIN
|
||
|
#include "catch.hpp"
|
||
|
|
||
|
#include "template_engine/engine.hpp"
|
||
|
|
||
|
TEST_CASE("Template Engine - basic placeholder replacement")
|
||
|
{
|
||
|
template_engine::TemplateEngine engine;
|
||
|
auto rendered =
|
||
|
engine.render("{{one}} {{two}}", {{"one", "two"}, {"two", "one"}});
|
||
|
|
||
|
REQUIRE(rendered == "two one");
|
||
|
}
|