algo/dwindle: add back splitratio (#13498)
This commit is contained in:
parent
5cb1281035
commit
9f98f7440b
3 changed files with 87 additions and 0 deletions
|
|
@ -39,6 +39,16 @@ namespace Colors {
|
|||
TESTS_PASSED++; \
|
||||
}
|
||||
|
||||
#define EXPECT_NOT(expr, val) \
|
||||
if (const auto RESULT = expr; RESULT == (val)) { \
|
||||
NLog::log("{}Failed: {}{}, expected not {}, got {}. Source: {}@{}.", Colors::RED, Colors::RESET, #expr, val, RESULT, __FILE__, __LINE__); \
|
||||
ret = 1; \
|
||||
TESTS_FAILED++; \
|
||||
} else { \
|
||||
NLog::log("{}Passed: {}{}. Got {}", Colors::GREEN, Colors::RESET, #expr, val); \
|
||||
TESTS_PASSED++; \
|
||||
}
|
||||
|
||||
#define EXPECT_VECTOR2D(expr, val) \
|
||||
do { \
|
||||
const auto& RESULT = expr; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue