Skip to content

Commit

Permalink
chore: Revise constants
Browse files Browse the repository at this point in the history
  • Loading branch information
oboukli committed Aug 2, 2023
1 parent 1f04437 commit efd1eff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions benchmark/lru_cache_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test(int const capacity) {

TEST_CASE("forfun::lrucache benchmarking") {
SECTION("small") {
constexpr int const lrucache_capacity{32};
static constexpr int const lrucache_capacity{32};

ankerl::nanobench::Bench()

Expand All @@ -74,7 +74,7 @@ TEST_CASE("forfun::lrucache benchmarking") {
}

SECTION("large") {
constexpr int const lrucache_capacity{128};
static constexpr int const lrucache_capacity{128};

ankerl::nanobench::Bench()

Expand Down
2 changes: 1 addition & 1 deletion benchmark/palindrome_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "forfun/palindrome.hpp"

TEST_CASE("forfun::palindrome benchmarking") {
constexpr std::string_view const palindrome{
static constexpr std::string_view const palindrome{
"oooooooooooooooooooooooooooooooooooooooooooooooooo"
"oooooooooooooooooooooooooooooooooooooooooooooooooo"};

Expand Down

0 comments on commit efd1eff

Please sign in to comment.