SHARE
TWEET

Testes que não retornam valor diferente de 0 ao falhar

brandizzi Oct 10th, 2011 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void RunAllTests(void) {
  2.     CuString *output = CuStringNew();
  3.     CuSuite* suite = CuSuiteNew();
  4.     CuSuiteAddSuite(suite, test_project_suite());
  5.     // ... mais coisas aqui
  6.     CuSuiteRun(suite);
  7.     CuSuiteSummary(suite, output);
  8.     CuSuiteDetails(suite, output);
  9.     printf("%s\n", output->buffer);
  10.     CuStringDelete(output);
  11.     CuSuiteDelete(suite);
  12. }
  13. int main(void) {
  14.     RunAllTests();
  15.     return 0;
  16. }
  17.  
RAW Paste Data
Want to get better at C?
Learn to code C in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top