Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
README.md | D | 12-May-2024 | 1.6 KiB | 45 | 34 | |
all_of.hpp | D | 12-May-2024 | 3.9 KiB | 121 | 103 | |
any_of.hpp | D | 12-May-2024 | 5.9 KiB | 174 | 155 | |
ap.hpp | D | 12-May-2024 | 2.5 KiB | 77 | 63 | |
at.hpp | D | 12-May-2024 | 2.5 KiB | 92 | 70 | |
cartesian_product.hpp | D | 12-May-2024 | 6.3 KiB | 235 | 200 | |
drop_back.hpp | D | 12-May-2024 | 3.3 KiB | 100 | 81 | |
drop_front.hpp | D | 12-May-2024 | 5.5 KiB | 161 | 132 | |
drop_while.hpp | D | 12-May-2024 | 2.5 KiB | 73 | 59 | |
for_each.hpp | D | 12-May-2024 | 1.9 KiB | 65 | 44 | |
group.hpp | D | 12-May-2024 | 5.4 KiB | 151 | 126 | |
index_if.hpp | D | 12-May-2024 | 2.8 KiB | 82 | 66 | |
insert.hpp | D | 12-May-2024 | 3.3 KiB | 85 | 70 | |
insert_range.hpp | D | 12-May-2024 | 3.4 KiB | 106 | 92 | |
intersperse.hpp | D | 12-May-2024 | 1.9 KiB | 55 | 42 | |
is_empty.hpp | D | 12-May-2024 | 1.7 KiB | 56 | 37 | |
length.hpp | D | 12-May-2024 | 1.4 KiB | 49 | 33 | |
lexicographical_compare.hpp | D | 12-May-2024 | 3.5 KiB | 110 | 82 | |
make.hpp | D | 12-May-2024 | 1.1 KiB | 42 | 28 | |
none_of.hpp | D | 12-May-2024 | 3 KiB | 91 | 75 | |
partition.hpp | D | 12-May-2024 | 2.7 KiB | 75 | 59 | |
permutations.hpp | D | 12-May-2024 | 3.6 KiB | 88 | 72 | |
remove_at.hpp | D | 12-May-2024 | 4.8 KiB | 131 | 112 | |
remove_range.hpp | D | 12-May-2024 | 4.5 KiB | 115 | 97 | |
reverse.hpp | D | 12-May-2024 | 1.6 KiB | 56 | 43 | |
scans.hpp | D | 12-May-2024 | 8 KiB | 217 | 195 | |
sequence.hpp | D | 12-May-2024 | 417 | 14 | 5 | |
slice.hpp | D | 12-May-2024 | 6.4 KiB | 183 | 149 | |
sort.hpp | D | 12-May-2024 | 4.3 KiB | 112 | 92 | |
span.hpp | D | 12-May-2024 | 3 KiB | 85 | 67 | |
take_back.hpp | D | 12-May-2024 | 2.7 KiB | 83 | 68 | |
take_front.hpp | D | 12-May-2024 | 2.7 KiB | 78 | 65 | |
take_while.hpp | D | 12-May-2024 | 2.2 KiB | 69 | 54 | |
test_case.hpp | D | 12-May-2024 | 405 | 14 | 7 | |
transform.hpp | D | 12-May-2024 | 2 KiB | 75 | 55 | |
unfolds.hpp | D | 12-May-2024 | 5.4 KiB | 171 | 148 | |
unique.hpp | D | 12-May-2024 | 5.4 KiB | 159 | 132 | |
zips.hpp | D | 12-May-2024 | 12.4 KiB | 343 | 299 |
README.md
1The headers in this directory provide facilities for automatic unit testing. 2Basically, each header defines unit tests for an algorithm or a set of related 3algorithms. To get the tests for these algorithms, simply include the header 4at global scope. However, before including the header, you must define the 5following macros: 6 7 `MAKE_TUPLE(...)` 8 Must expand to a sequence holding `__VA_ARGS__`. A valid definition 9 would be `hana::make_tuple(__VA_ARGS__)`. 10 11 `TUPLE_TYPE(...)` 12 Must expand to the type of a sequence holding objects of type `__VA_ARGS__`. 13 A valid definition would be `hana::tuple<__VA_ARGS__>`. 14 15 `TUPLE_TAG` 16 Must expand to the tag of the sequence. A valid definition would 17 be `hana::tuple_tag`. 18 19 20The following macros may or may not be defined: 21 22 `MAKE_TUPLE_NO_CONSTEXPR` 23 Must be defined if the `MAKE_TUPLE` macro can't be used inside a 24 constant expression. Otherwise, `MAKE_TUPLE` is assumed to be able 25 to construct a `constexpr` container. 26 27The following directories contain automatic unit tests, and the following is 28sufficient when adding a new automatic unit test (in a file `${FILE}`): 29 30```sh 31DIRECTORIES=$(find test -type d -name auto | grep -v test/_include/auto) 32for d in ${DIRECTORIES}; do 33 cat > ${d}/${FILE}.cpp <<EOF 34// Copyright Louis Dionne 2013-2017 35// Distributed under the Boost Software License, Version 1.0. 36// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) 37 38#include "_specs.hpp" 39#include <auto/${FILE}.hpp> 40 41int main() { } 42EOF 43done 44``` 45