25 : expected_(&expected), options_(options) {}
28 std::ostream* os)
const {
35 *os <<
"\nWith differences:\n"
42 *os <<
"Is equal to model: " << expected_->DebugString(
false);
46 *os <<
"Is not equal to model: "
47 << expected_->DebugString(
false);
static ElementalDifference Create(const Elemental &first, const Elemental &second, const ElementalDifferenceOptions &options={})
Returns the difference between two Elementals.
static std::string Describe(const Elemental &first, const Elemental &second, const ElementalDifference &difference)
ElementalMatcher(const Elemental &expected ABSL_ATTRIBUTE_LIFETIME_BOUND, const ElementalDifferenceOptions &options)
void DescribeTo(std::ostream *os) const
bool MatchAndExplain(const Elemental &actual, std::ostream *os) const
void DescribeNegationTo(std::ostream *os) const
An object oriented wrapper for quadratic constraints in ModelStorage.