Computes the procentage of correct tests.
| 39 | // Computes the procentage of correct tests. |
| 40 | // |
| 41 | int |
| 42 | correct(int tests, int errors) |
| 43 | { |
| 44 | if ((errors == 0) || (tests == 0)) |
| 45 | return 100; |
| 46 | |
| 47 | return (tests - errors) * 100 / tests; |
| 48 | } |
| 49 | |
| 50 | } // namespace Test |
no outgoing calls
no test coverage detected