From bb21a9651da4d4dd6a7e209d7de8c8202d74061a Mon Sep 17 00:00:00 2001 From: Patrick Brosi Date: Tue, 13 Dec 2022 15:35:41 +0100 Subject: [PATCH] fix typo in libutil --- src/util/Misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/Misc.h b/src/util/Misc.h index 089bef7..e74546b 100644 --- a/src/util/Misc.h +++ b/src/util/Misc.h @@ -27,7 +27,7 @@ #define T_STOP(n) (std::chrono::duration_cast(std::chrono::high_resolution_clock::now() - _tstart_##n).count() / 1000.0) #define _TEST3(s, o, e) if (!(s o e)) { std::cerr << "\n" << __FILE__ << ":" << __LINE__ << ": Test failed!\n Expected " << #s << " " << #o " " << (e) << ", got " << (s) << std::endl; exit(1);} -#define _TEST2(s, e) _TEST3(s, ==, o) +#define _TEST2(s, e) _TEST3(s, ==, e) #define _TEST1(s) _TEST3(static_cast(s), ==, true) #define _GET_TEST_MACRO(_1,_2,_3,NAME,...) NAME