date.h as git submodule.

This commit is contained in:
Per Malmberg
2018-03-11 20:24:55 +01:00
parent 74e1ad4d60
commit 582d0c4369
9 changed files with 14 additions and 8058 deletions

View File

@@ -5,9 +5,9 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Wextra")
include_directories(
externals/Catch2/single_include/
..
../libcron/externals/date
${CMAKE_CURRENT_LIST_DIR}/externals/Catch2/single_include/
${CMAKE_CURRENT_LIST_DIR}/../libcron/externals/date/include
${CMAKE_CURRENT_LIST_DIR}/..
)
add_executable(

View File

@@ -1,7 +1,7 @@
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include <catch.hpp>
#include <date.h>
#include <date/date.h>
#include <libcron/Cron.h>
#include <libcron/CronData.h>
@@ -21,8 +21,6 @@ bool has_value_range(const std::set<T>& set, uint8_t low, uint8_t high)
return found;
}
SCENARIO("Numerical inputs")
{
GIVEN("Valid numerical inputs")

View File

@@ -1,6 +1,6 @@
#include <catch.hpp>
#include <chrono>
#include <date.h>
#include <date/date.h>
#include <libcron/Cron.h>
#include <iostream>