mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
* initial implementation of multidimensional std and var * consolidated std function into var, cleaned up the interface for var, fixed bias correction * added documentation of variable axis for std and var * updated documentation for std and var * changed the order of normalization and dimension for a three parameter input in the functions * updated documentation for var and std * add transform expressions for std and var with variable axis * added test coverage for std and var with a variable axis * update to documentation * change n dim std to use apply function * fixed tests, removed unnecessary code, updated docs * fixed typo in docs * update docs to remove a type * changed location of apply function * updated tests to use deepStrictEqual to pass linter * adding test coverage for var.transform and std.transform
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