Skip to content

Updating dependent library versions, removing repeat #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gen_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: run-doxygen
uses: mattnotmitt/doxygen-action@v1.9.8
uses: mattnotmitt/doxygen-action@v1.12.0
with:
working-directory: doc
- name: deploy-pages
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 by Cliff Green
# Copyright (c) 2024-2025 by Cliff Green
#
# https://github.com/connectivecpp/binary-serialize
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/download_cpm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

file(
DOWNLOAD
https://github.com/cpm-cmake/CPM.cmake/releases/download/v0.39.0/CPM.cmake
https://github.com/cpm-cmake/CPM.cmake/releases/download/v0.40.0/CPM.cmake
${CMAKE_CURRENT_BINARY_DIR}/cmake/CPM.cmake
)
include(${CMAKE_CURRENT_BINARY_DIR}/cmake/CPM.cmake)
2 changes: 1 addition & 1 deletion example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 by Cliff Green
# Copyright (c) 2024-2025 by Cliff Green
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
Expand Down
2 changes: 1 addition & 1 deletion example/binary_serialize_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @author Cliff Green
*
* @copyright (c) 2024 by Cliff Green
* @copyright (c) 2024-2025 by Cliff Green
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand Down
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 by Cliff Green
# Copyright (c) 2024-2025 by Cliff Green
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -12,7 +12,7 @@ project ( binary_serialize_test LANGUAGES CXX )
include ( ../cmake/download_cpm.cmake )

CPMAddPackage ( "gh:catchorg/Catch2@3.8.0" )
CPMAddPackage ( "gh:connectivecpp/utility-rack@1.0.4" )
CPMAddPackage ( "gh:connectivecpp/utility-rack@1.0.5" )

set ( test_app_names byteswap_test
extract_append_test
Expand Down
2 changes: 1 addition & 1 deletion test/binary_serialize_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @author Cliff Green
*
* @copyright (c) 2019-2024 by Cliff Green
* @copyright (c) 2019-2025 by Cliff Green
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand Down
14 changes: 8 additions & 6 deletions test/extract_append_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @author Cliff Green, Roxanne Agerone
*
* @copyright (c) 2019-2024 by Cliff Green, Roxanne Agerone
* @copyright (c) 2019-2025 by Cliff Green, Roxanne Agerone
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand All @@ -16,10 +16,10 @@

#include <cstddef> // std::byte
#include <cstdint> // std::uint32_t, etc
#include <ranges> // std::views::iota

#include "serialize/extract_append.hpp"

#include "utility/repeat.hpp"
#include "utility/byte_array.hpp"

constexpr std::uint32_t val1 = 0xDDCCBBAA;
Expand Down Expand Up @@ -65,8 +65,9 @@ TEST_CASE ( "Append values into a buffer", "[append_val]" ) {
REQUIRE(chops::append_val<std::endian::big>(ptr, val4) == 8u); ptr += sizeof(val4);
REQUIRE(chops::append_val<std::endian::big>(ptr, val5) == 4u); ptr += sizeof(val5);
REQUIRE(chops::append_val<std::endian::big>(ptr, val6) == 1u);
chops::repeat(arr_sz, [&buf] (int i) {
REQUIRE (std::to_integer<int>(buf[i]) == std::to_integer<int>(net_buf_big[i])); } );
for (int i : std::views::iota(0, arr_sz)) {
REQUIRE (std::to_integer<int>(buf[i]) == std::to_integer<int>(net_buf_big[i]));
}
}
SECTION ("Append_val with multiple values, little endian") {
std::byte* ptr = buf;
Expand All @@ -76,8 +77,9 @@ TEST_CASE ( "Append values into a buffer", "[append_val]" ) {
REQUIRE(chops::append_val<std::endian::little>(ptr, val4) == 8u); ptr += sizeof(val4);
REQUIRE(chops::append_val<std::endian::little>(ptr, val5) == 4u); ptr += sizeof(val5);
REQUIRE(chops::append_val<std::endian::little>(ptr, val6) == 1u);
chops::repeat(arr_sz, [&buf] (int i) {
REQUIRE (std::to_integer<int>(buf[i]) == std::to_integer<int>(net_buf_little[i])); } );
for (int i : std::views::iota(0, arr_sz)) {
REQUIRE (std::to_integer<int>(buf[i]) == std::to_integer<int>(net_buf_little[i]));
}
}
}

Expand Down