Skip to content

Fix std::format unit test#1966

Merged
Neverlord merged 1 commit into
mainfrom
issues/1963
Dec 1, 2024
Merged

Fix std::format unit test#1966
Neverlord merged 1 commit into
mainfrom
issues/1963

Conversation

@riemass
Copy link
Copy Markdown
Member

@riemass riemass commented Nov 30, 2024

Closes #1963
When building in c++23 mode with std::format support a static cast in the unit tests will fail. The main reason is that c++23 adds support for ranges to std::format, so a vector can be formatted now. Changed the test to use another type that isn't in the std library.

@riemass riemass added the bugfix label Nov 30, 2024
@riemass riemass requested a review from Neverlord November 30, 2024 00:15
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.64%. Comparing base (c83b3a0) to head (9343a79).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1966      +/-   ##
==========================================
+ Coverage   71.61%   71.64%   +0.02%     
==========================================
  Files         658      658              
  Lines       29114    29114              
  Branches     3169     3171       +2     
==========================================
+ Hits        20851    20858       +7     
+ Misses       6457     6450       -7     
  Partials     1806     1806              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@riemass
Copy link
Copy Markdown
Member Author

riemass commented Nov 30, 2024

Note: I fixed the typos in the other active PR since it's a small patch. Should I cherry-pick the commit into it's own PR?

@Neverlord
Copy link
Copy Markdown
Member

Note: I fixed the typos in the other active PR since it's a small patch. Should I cherry-pick the commit into it's own PR?

No need, I've already rebased this PR.

@Neverlord Neverlord merged commit ea64127 into main Dec 1, 2024
@Neverlord Neverlord deleted the issues/1963 branch December 1, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clang c++23 std::format compilation error

2 participants