diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-22 16:42:06 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-22 16:42:06 +0100 |
commit | 2317b4608821b03da0cc288d06b9c0bdb6b60239 (patch) | |
tree | 7dd46e3c2c5601e603baa7defa057cd4d41fc4c9 /test/test-bitset.cpp | |
parent | Move everything into more sensible places (diff) | |
download | mygrate-2317b4608821b03da0cc288d06b9c0bdb6b60239.tar.bz2 mygrate-2317b4608821b03da0cc288d06b9c0bdb6b60239.tar.xz mygrate-2317b4608821b03da0cc288d06b9c0bdb6b60239.zip |
Pass linter checks
Except IWYU, doesn't like the C++20 CTF.
Diffstat (limited to 'test/test-bitset.cpp')
-rw-r--r-- | test/test-bitset.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test-bitset.cpp b/test/test-bitset.cpp index 15e43d6..02b3893 100644 --- a/test/test-bitset.cpp +++ b/test/test-bitset.cpp @@ -1,10 +1,12 @@ #define BOOST_TEST_MODULE BitSet -#include <boost/test/data/test_case.hpp> #include <boost/test/unit_test.hpp> #include "helpers.h" +#include <array> #include <bitset.h> #include <bitset> +#include <cstddef> +#include <span> using namespace MyGrate; @@ -14,7 +16,7 @@ BOOST_TEST_DONT_PRINT_LOG_VALUE(BitSet::Iterator); BOOST_AUTO_TEST_CASE(bitset) { - std::byte bytes[3] {0x00_b, 0xFF_b, 0xa1_b}; + constexpr std::array<std::byte, 3> bytes {0x00_b, 0xFF_b, 0xa1_b}; BitSet bs {bytes}; BOOST_REQUIRE_EQUAL(bs.size(), 24); |