andresy/torch — pull request #82 by jucor (2012-11-27 17:45:52+00:00)
Title: count and report assertions in Tester class

This patches Tester.class to count and report the number of assertions evaluated during a call to Tester:run() -- it's offered in pretty much all test-suites, e.g. Junit even reports a '.' or 'F' for each assert. Example:

```
Torch 7.0 Copyright (C) 2001-2011 Idiap, NEC Labs, NYU
Running 2 tests
__ ==> Done

Completed 6 asserts in 2 tests with 0 errors

--------------------------------------------------------------------------------
```