     {
         const TestResult& tr = test_results[i];
 
-        if (tr.status != Pass)
+        if (tr.status == Pass)
+        {
+          num_passes++;
+        }
+        else
         {
             std::cout << hline << std::endl;
         


    std::cout << "Totals: ";
    std::cout << num_failures << " failures, ";
    std::cout << num_known_failures << " known failures and ";
    std::cout << num_errors << " errors" << std::endl;
}



  
    std::sort(test_results.begin(), test_results.end());

    size_t num_passes = 0;
    size_t num_failures = 0;
    size_t num_known_failures = 0;
    size_t num_errors = 0;
