Skip to content

Commit cb965eb

Browse files
Updating dependent library versions, removing repeat
1 parent 6ac6a41 commit cb965eb

8 files changed

+16
-14
lines changed

.github/workflows/gen_docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: checkout
1919
uses: actions/checkout@v4
2020
- name: run-doxygen
21-
uses: mattnotmitt/doxygen-action@v1.9.8
21+
uses: mattnotmitt/doxygen-action@v1.12.0
2222
with:
2323
working-directory: doc
2424
- name: deploy-pages

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 by Cliff Green
1+
# Copyright (c) 2024-2025 by Cliff Green
22
#
33
# https://github.com/connectivecpp/binary-serialize
44
#

cmake/download_cpm.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
file(
66
DOWNLOAD
7-
https://github.com/cpm-cmake/CPM.cmake/releases/download/v0.39.0/CPM.cmake
7+
https://github.com/cpm-cmake/CPM.cmake/releases/download/v0.40.0/CPM.cmake
88
${CMAKE_CURRENT_BINARY_DIR}/cmake/CPM.cmake
99
)
1010
include(${CMAKE_CURRENT_BINARY_DIR}/cmake/CPM.cmake)

example/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 by Cliff Green
1+
# Copyright (c) 2024-2025 by Cliff Green
22
#
33
# Distributed under the Boost Software License, Version 1.0.
44
# (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt)

example/binary_serialize_example.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @author Cliff Green
66
*
7-
* @copyright (c) 2024 by Cliff Green
7+
* @copyright (c) 2024-2025 by Cliff Green
88
*
99
* Distributed under the Boost Software License, Version 1.0.
1010
* (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

test/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 by Cliff Green
1+
# Copyright (c) 2024-2025 by Cliff Green
22
#
33
# Distributed under the Boost Software License, Version 1.0.
44
# (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
@@ -12,7 +12,7 @@ project ( binary_serialize_test LANGUAGES CXX )
1212
include ( ../cmake/download_cpm.cmake )
1313

1414
CPMAddPackage ( "gh:catchorg/[email protected]" )
15-
CPMAddPackage ( "gh:connectivecpp/[email protected].4" )
15+
CPMAddPackage ( "gh:connectivecpp/[email protected].5" )
1616

1717
set ( test_app_names byteswap_test
1818
extract_append_test

test/binary_serialize_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* @author Cliff Green
77
*
8-
* @copyright (c) 2019-2024 by Cliff Green
8+
* @copyright (c) 2019-2025 by Cliff Green
99
*
1010
* Distributed under the Boost Software License, Version 1.0.
1111
* (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

test/extract_append_test.cpp

+8-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @author Cliff Green, Roxanne Agerone
66
*
7-
* @copyright (c) 2019-2024 by Cliff Green, Roxanne Agerone
7+
* @copyright (c) 2019-2025 by Cliff Green, Roxanne Agerone
88
*
99
* Distributed under the Boost Software License, Version 1.0.
1010
* (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -16,10 +16,10 @@
1616

1717
#include <cstddef> // std::byte
1818
#include <cstdint> // std::uint32_t, etc
19+
#include <ranges> // std::views::iota
1920

2021
#include "serialize/extract_append.hpp"
2122

22-
#include "utility/repeat.hpp"
2323
#include "utility/byte_array.hpp"
2424

2525
constexpr std::uint32_t val1 = 0xDDCCBBAA;
@@ -65,8 +65,9 @@ TEST_CASE ( "Append values into a buffer", "[append_val]" ) {
6565
REQUIRE(chops::append_val<std::endian::big>(ptr, val4) == 8u); ptr += sizeof(val4);
6666
REQUIRE(chops::append_val<std::endian::big>(ptr, val5) == 4u); ptr += sizeof(val5);
6767
REQUIRE(chops::append_val<std::endian::big>(ptr, val6) == 1u);
68-
chops::repeat(arr_sz, [&buf] (int i) {
69-
REQUIRE (std::to_integer<int>(buf[i]) == std::to_integer<int>(net_buf_big[i])); } );
68+
for (int i : std::views::iota(0, arr_sz)) {
69+
REQUIRE (std::to_integer<int>(buf[i]) == std::to_integer<int>(net_buf_big[i]));
70+
}
7071
}
7172
SECTION ("Append_val with multiple values, little endian") {
7273
std::byte* ptr = buf;
@@ -76,8 +77,9 @@ TEST_CASE ( "Append values into a buffer", "[append_val]" ) {
7677
REQUIRE(chops::append_val<std::endian::little>(ptr, val4) == 8u); ptr += sizeof(val4);
7778
REQUIRE(chops::append_val<std::endian::little>(ptr, val5) == 4u); ptr += sizeof(val5);
7879
REQUIRE(chops::append_val<std::endian::little>(ptr, val6) == 1u);
79-
chops::repeat(arr_sz, [&buf] (int i) {
80-
REQUIRE (std::to_integer<int>(buf[i]) == std::to_integer<int>(net_buf_little[i])); } );
80+
for (int i : std::views::iota(0, arr_sz)) {
81+
REQUIRE (std::to_integer<int>(buf[i]) == std::to_integer<int>(net_buf_little[i]));
82+
}
8183
}
8284
}
8385

0 commit comments

Comments
 (0)