blob: b10dc34aad7cc43cb4074f7f6b7d9b8718e1fe38 [file] [log] [blame]
#include "doctest.h"
#include <iostream>
#include <vector>
using namespace std;
typedef doctest::Types<char, short, int> the_types;
TEST_CASE_TEMPLATE("signed integers stuff", T, the_types) {
T var = T();
--var;
CHECK(var == -1);
}
TYPE_TO_STRING(std::vector<int>);
TEST_CASE_TEMPLATE_DEFINE("default construction", T, test_id) {
T var = T();
CHECK(var == T());
}
TEST_CASE_TEMPLATE_INSTANTIATE(test_id, the_types);
TEST_CASE_TEMPLATE_INSTANTIATE(test_id, doctest::Types<float, double>);