restructure third-parties, add licenses, add more gcc-compiler tests

This commit is contained in:
pantor
2017-08-14 09:35:37 +02:00
parent 7bb461267a
commit 466a378a08
8 changed files with 139 additions and 42 deletions
+4 -1
View File
@@ -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" );
}
}