mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-27 19:10:24 +01:00
Guard against min/max macros in tests too
This commit is contained in:
@@ -70,8 +70,8 @@ template <typename T>
|
||||
static void Verify(void(*f)(T, char*), char* (*g)(T, char*)) {
|
||||
// Boundary cases
|
||||
VerifyValue<T>(0, f, g);
|
||||
VerifyValue<T>(std::numeric_limits<T>::min(), f, g);
|
||||
VerifyValue<T>(std::numeric_limits<T>::max(), f, g);
|
||||
VerifyValue<T>((std::numeric_limits<T>::min)(), f, g);
|
||||
VerifyValue<T>((std::numeric_limits<T>::max)(), f, g);
|
||||
|
||||
// 2^n - 1, 2^n, 10^n - 1, 10^n until overflow
|
||||
for (int power = 2; power <= 10; power += 8) {
|
||||
|
||||
Reference in New Issue
Block a user