Print summary and return an exit code
| 233 | |
| 234 | // Print summary and return an exit code |
| 235 | int summary() const { |
| 236 | out << "\n"; |
| 237 | out << "tests : " << tests << "\n"; |
| 238 | out << "assertions : " << assertions << "\n"; |
| 239 | out << "failures : " << failures << "\n"; |
| 240 | out << "exceptions : " << exceptions << "\n"; |
| 241 | return failures == 0 ? 0 : 1; |
| 242 | } |
| 243 | }; |