An open API service indexing awesome lists of open source software.

https://github.com/sebastianbach/compile_time_unit_tests

Compile time unit testing in mondern C++
https://github.com/sebastianbach/compile_time_unit_tests

constexpr cpp cpp17

Last synced: 4 months ago
JSON representation

Compile time unit testing in mondern C++

Awesome Lists containing this project

README

          

# Compile Time Unit Tests

Experiments with compile time unit tests in C++. The presented bitmap class can be used with std::vector as an ordinary bitmap; but can also be tested at compile time.

The example requires C++ 17.

# Resources

* Bitmap https://en.wikipedia.org/wiki/Bitmap
* constexpr https://en.cppreference.com/w/cpp/language/constexpr
* static_assert https://en.cppreference.com/w/cpp/language/static_assert