mirror of
https://github.com/alexkay/spek.git
synced 2025-04-17 17:12:19 +03:00
Tidy
This commit is contained in:
parent
43bc87da6c
commit
1b3483eceb
@ -59,6 +59,9 @@ void test_audio_info()
|
||||
{"2ch-44100Hz-V2.mp3", {"MP3 (MPEG audio layer 3)", 64000, 44100, 0, 2, MP3_T}},
|
||||
};
|
||||
for (const auto& item : files) {
|
||||
run([&] () { test_file(item.first, item.second); }, "audio info: " + item.first);
|
||||
run(
|
||||
"audio info: " + item.first,
|
||||
[&] () { test_file(item.first, item.second); }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -43,5 +43,5 @@ static void test_vercmp()
|
||||
|
||||
void test_utils()
|
||||
{
|
||||
run(test_vercmp, "vercmp");
|
||||
run("vercmp", test_vercmp);
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ int main()
|
||||
}
|
||||
}
|
||||
|
||||
void run(std::function<void ()> func, const std::string& message)
|
||||
void run(const std::string& message, std::function<void ()> func)
|
||||
{
|
||||
std::cerr << message << std::endl;
|
||||
func();
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
void run(std::function<void ()> func, const std::string& message);
|
||||
void run(const std::string& message, std::function<void ()> func);
|
||||
|
||||
extern int g_total;
|
||||
extern int g_passes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user