From 2317b4608821b03da0cc288d06b9c0bdb6b60239 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 22 May 2021 16:42:06 +0100 Subject: Pass linter checks Except IWYU, doesn't like the C++20 CTF. --- test/test-bitset.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/test-bitset.cpp') 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 #include #include "helpers.h" +#include #include #include +#include +#include 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 bytes {0x00_b, 0xFF_b, 0xa1_b}; BitSet bs {bytes}; BOOST_REQUIRE_EQUAL(bs.size(), 24); -- cgit v1.2.3