Skip to content

Commit

Permalink
fix ambiguity of endl when no stream available
Browse files Browse the repository at this point in the history
  • Loading branch information
simonlynen committed Jan 16, 2015
1 parent 5f53498 commit d0ad8b5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/eigen-checks/internal/gtest-equal.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ ::testing::AssertionResult MatricesNear(
::testing::AssertionResult failure_reason(false);
failure_reason << "The matrices have a different number of rows: "
<< name_lhs << " has " << lhs.rows() << " rows while " << name_rhs
<< " has " << rhs.rows() << " rows." << std::endl;
<< " has " << rhs.rows() << " rows./n";
return failure_reason;
}
if (lhs.cols() != rhs.cols()) {
::testing::AssertionResult failure_reason(false);
failure_reason << "The matrices have a different number of cols: "
<< name_lhs << " has " << lhs.cols() << " cols while " << name_rhs
<< " cols " << rhs.cols() << " cols." << std::endl;
failure_reason << name_lhs << ":\n" << lhs << std::endl;
failure_reason << name_rhs << ":\n" << rhs << std::endl;
<< " cols " << rhs.cols() << " cols./n";
failure_reason << name_lhs << ":\n" << lhs << "/n";
failure_reason << name_rhs << ":\n" << rhs << "/n";
return failure_reason;
}

Expand Down Expand Up @@ -71,9 +71,9 @@ ::testing::AssertionResult MatricesNear(
}
}
}
failure_reason << name_lhs << ":\n" << lhs << std::endl;
failure_reason << name_rhs << ":\n" << rhs << std::endl;
failure_reason << "Difference:\n" << (lhs - rhs) << std::endl;
failure_reason << name_lhs << ":\n" << lhs << "/n";
failure_reason << name_rhs << ":\n" << rhs << "/n";
failure_reason << "Difference:\n" << (lhs - rhs) << "/n";
return failure_reason;
}
}
Expand Down

0 comments on commit d0ad8b5

Please sign in to comment.