Go to the source code of this file.
◆ TEST_IN_RANGE
Value: if (params.name() <
min || params.name() >
max) { \
return absl::StrCat(
"parameter '", #
name,
"' should be in [",
min,
",", \
max,
"]. Current value is ", params.name()); \
}
Definition at line 26 of file sat/parameters_validation.cc.
◆ TEST_IS_FINITE
| #define TEST_IS_FINITE |
( |
|
name | ) |
|
Value: if (!std::isfinite(params.name())) { \
return absl::StrCat(
"parameter '", #
name,
"' is NaN or not finite"); \
}
Definition at line 47 of file sat/parameters_validation.cc.
◆ TEST_NON_NEGATIVE
| #define TEST_NON_NEGATIVE |
( |
|
name | ) |
|
◆ TEST_NOT_NAN
| #define TEST_NOT_NAN |
( |
|
name | ) |
|
◆ TEST_POSITIVE
| #define TEST_POSITIVE |
( |
|
name | ) |
|