Skip to content

Commit

Permalink
export math_helper, fix math_helper test name
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Haim committed Apr 20, 2024
1 parent 8d789d8 commit b048f16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion include/concurrencpp/utils/math_helper.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#ifndef CONCURRENCPP_MATH_H
#define CONCURRENCPP_MATH_H

#include "concurrencpp/platform_defs.h"

#include <cstddef>

namespace concurrencpp::details {
struct math_helper {
struct CRCPP_API math_helper {
static bool is_prime(size_t n) noexcept;
static size_t next_prime(size_t n) noexcept;
};
Expand Down
2 changes: 1 addition & 1 deletion test/source/tests/util_tests/math_helper_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void concurrencpp::tests::test_math_helper_next_prime() {
}

int main() {
tester tester("atomic_wait test");
tester tester("math_helper test");

tester.add_step("is_prime", test_math_helper_is_prime);
tester.add_step("next_prime", test_math_helper_next_prime);
Expand Down

0 comments on commit b048f16

Please sign in to comment.