fix: Broken formatting in unit tests

This commit is contained in:
WerWolv
2025-08-07 08:26:35 +02:00
parent f358069cc1
commit de67d5942b

View File

@@ -29,7 +29,8 @@
do { \
auto ret = (x); \
if (!ret) { \
hex::log::error("Test assert '" #x "' failed {} at {}:{}", \
hex::log::error("Test assert '{}' failed {} at {}:{}", \
#x, \
fmt::format("" __VA_ARGS__), \
__FILE__, \
__LINE__); \
@@ -93,8 +94,8 @@ namespace hex::test {
template<typename F>
TestSequence<F> operator+(const TestSequenceExecutor &executor, F f) noexcept {
return TestSequence<F>(executor.getName(), std::move(f), executor.shouldFail());
TestSequence<F> operator+(const TestSequenceExecutor &executor, F &&f) noexcept {
return TestSequence<F>(executor.getName(), std::forward<F>(f), executor.shouldFail());
}