Pat Grasso 33ab725d53 Create spec for erf() and include test data
Values in `erf.values.json` come from python's `math.erf()`. Actual
values should be within 5e-16 of the expected values.

Test against real number, matrix, array, bignumber, boolean, and
null values.
2016-10-20 15:33:09 -04:00
..
2016-08-06 13:04:51 -06:00
2013-12-14 13:20:27 +01:00

Tests

To execute the tests, install mocha and run the following in the root of the project:

npm install -g mocha
mocha test --recursive

It's important to run mocha with the --recursive flag, as most tests are located in nested folders.

Code coverage

To test code coverage of the tests, install istanbul and run it:

npm install -g istanbul
istanbul cover _mocha -- test --recursive

Note the underscore before mocha, and the -- surrounded by spaces after _mocha. See also https://github.com/gotwarlost/istanbul/issues/44.

To see the results, open the generated report in your browser:

./coverage/lcov-report/index.html