Update Catch2 to v3
This commit is contained in:
committed by
mathieui
parent
c7a0ce553f
commit
5cb2802fd2
+1
-15
@@ -1,21 +1,7 @@
|
||||
#include "catch.hpp"
|
||||
#include "catch2/catch_test_macros.hpp"
|
||||
|
||||
#include <utils/timed_events.hpp>
|
||||
|
||||
/**
|
||||
* Let Catch know how to display std::chrono::duration values
|
||||
*/
|
||||
namespace Catch
|
||||
{
|
||||
template<typename Rep, typename Period> struct StringMaker<std::chrono::duration<Rep, Period>>
|
||||
{
|
||||
static std::string convert(const std::chrono::duration<Rep, Period>& value)
|
||||
{
|
||||
return std::to_string(std::chrono::duration_cast<std::chrono::milliseconds>(value).count()) + "ms";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO, use a mock clock instead of relying on the real time with a sleep:
|
||||
* it’s unreliable on heavy load.
|
||||
|
||||
Reference in New Issue
Block a user