mirror of
https://github.com/pantor/inja.git
synced 2026-05-09 06:05:23 +00:00
restructure third-parties, add licenses, add more gcc-compiler tests
This commit is contained in:
+4
-1
@@ -1,6 +1,7 @@
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include "../thirdparty/catch.hpp"
|
||||
#include "../thirdparty/catch/catch.hpp"
|
||||
|
||||
#include "../thirdparty/json/json.hpp"
|
||||
#include "../../src/inja.hpp"
|
||||
|
||||
|
||||
@@ -212,6 +213,8 @@ TEST_CASE("Render") {
|
||||
REQUIRE( env.render("(% if age != 28 %)Right(% else %)Wrong(% endif %)", data) == "Right" );
|
||||
REQUIRE( env.render("(% if age >= 30 %)Right(% else %)Wrong(% endif %)", data) == "Wrong" );
|
||||
REQUIRE( env.render("(% if age in [28, 29, 30] %)True(% endif %)", data) == "True" );
|
||||
|
||||
// Only works with gcc-5
|
||||
// REQUIRE( env.render("(% if name in [\"Simon\", \"Tom\"] %)Test1(% else if name in [\"Peter\"] %)Test2(% else %)Test3(% endif %)", data) == "Test2" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user