new ci scripts and presets

This commit is contained in:
BlackMATov
2022-12-29 01:16:54 +07:00
parent ce142df971
commit a21a6bd4ca
59 changed files with 650 additions and 7459 deletions

View File

@@ -1,11 +1,11 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/flat.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2019-2021, by Matvey Cherevko (blackmatov@gmail.com)
* Copyright (C) 2019-2022, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#include <flat.hpp/flat_multimap.hpp>
#include "doctest/doctest.hpp"
#include "flat_tests.hpp"
#include <deque>
#include <string>
@@ -19,7 +19,7 @@ namespace
class dummy_less {
public:
dummy_less() = default;
dummy_less(int i) noexcept : i(i) {}
dummy_less(int ni) noexcept : i(ni) {}
bool operator()(const T& l, const T& r) const {
return l < r;
}
@@ -369,13 +369,15 @@ TEST_CASE("flat_multimap") {
}
SUBCASE("access") {
struct obj_t {
obj_t(int i) : i(i) {}
obj_t(int ni) : i(ni) {}
int i;
[[maybe_unused]]
bool operator<(const obj_t& o) const {
return i < o.i;
}
[[maybe_unused]]
bool operator==(const obj_t& o) const {
return i == o.i;
}
@@ -405,13 +407,15 @@ TEST_CASE("flat_multimap") {
}
SUBCASE("inserts") {
struct obj_t {
obj_t(int i) : i(i) {}
obj_t(int ni) : i(ni) {}
int i;
[[maybe_unused]]
bool operator<(const obj_t& o) const {
return i < o.i;
}
[[maybe_unused]]
bool operator==(const obj_t& o) const {
return i == o.i;
}
@@ -566,7 +570,9 @@ TEST_CASE("flat_multimap") {
SUBCASE("observers") {
struct my_less {
int i;
my_less(int i) : i(i) {}
my_less(int ni) : i(ni) {}
[[maybe_unused]]
bool operator()(int l, int r) const {
return l < r;
}