17 lines
369 B
C++
17 lines
369 B
C++
|
#include "mustache/mustache.hpp"
|
||
|
|
||
|
#include "RenderTest.hpp"
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
CPPUNIT_TEST_SUITE_REGISTRATION( RenderTest );
|
||
|
|
||
|
void RenderTest::renderTest(){
|
||
|
std::map<std::string, std::string> context;
|
||
|
|
||
|
context["test"] = "render-test";
|
||
|
|
||
|
CPPUNIT_ASSERT_EQUAL(std::string("It's a simple render-test"), Mustache::render("It's a simple {{test}}", context));
|
||
|
|
||
|
}
|