mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Broken formatting in unit tests
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user