mirror of
https://github.com/pantor/inja.git
synced 2026-02-28 22:36:25 +00:00
Fix: Remove circular dependencies in headers (#295)
* Remove circular dependencies in headers * Fix unit test includes and test data directory location
This commit is contained in:
committed by
GitHub
parent
17ba53cb9e
commit
384a6bef3f
@@ -1,16 +1,15 @@
|
||||
// Copyright (c) 2020 Pantor. All rights reserved.
|
||||
|
||||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
||||
|
||||
#include <doctest/doctest.h>
|
||||
|
||||
#define JSON_USE_IMPLICIT_CONVERSIONS 0
|
||||
#define JSON_NO_IO 1
|
||||
#include "inja/inja.hpp"
|
||||
|
||||
const std::string test_file_directory {"../test/data/"};
|
||||
|
||||
#include "test-files.cpp"
|
||||
#include "test-functions.cpp"
|
||||
#include "test-renderer.cpp"
|
||||
#include "test-units.cpp"
|
||||
|
||||
#define xstr(s) str(s)
|
||||
#define str(s) #s
|
||||
|
||||
const std::string test_file_directory { xstr(__TEST_DIR__)"/data/" };
|
||||
|
||||
Reference in New Issue
Block a user