jos
a2ae756fd1
Remove semicolons
2018-10-31 21:18:51 +01:00
jos
247aeabffa
Refactor all unit tests to ES6 import/export
2018-10-31 21:17:23 +01:00
greenkeeper[bot]
c5971b371a
Update standard to the latest version 🚀 ( #1226 )
...
* chore(package): update standard to version 12.0.0
* update to new lint version with --fix
I believe this mainly adds whitespace to `{}`'s.
* Replace assert.equal with assert.strictEqual
This breaks a lot of tests which I will endevour to fix in the next
commits.
* Fix most errors due to assert.strictEquals
Some instances of `strictEquals` are replaced by `deepEquals`.
`toString` has been used to make some string comparisions explicit.
Tests will still fail untill #1236 and #1237 are fixed.
* Fix assertion erros due to -0
With node 10, assert.strictEqual no longer considers `0 === -0`.
I missed these first time round as I was using node 8.
* Put toString correct side of bracket
I was converting the constructor to a string rather
than the result of the computation. Oops.
* Fixed #1236 : quantileSeq has inconsistant return
* Update package-lock
* Fixed #1237 : norm sometimes returning a complex number instead of number
* Fix cli tests
* More changes for standardjs, and fixes in unit tests
2018-09-08 16:33:58 +02:00
jos
1f0a37a0cb
Split initialized 'const' declarations into multiple statements
2018-06-13 15:31:37 +02:00
jos
17f07ec098
Fixed incompatibility with v4 (index.js file)
2018-06-13 14:02:50 +02:00
jos
b3b96749bf
Refactored var into const/let, and removed a lot of semicolons
2018-06-13 12:21:14 +02:00
jos
024b2a9e26
Fix most lint errors using npx standard --fix
2018-06-10 20:28:27 +02:00
jos
635cd0b574
Revert using /lib/ in tests, use /src/ again. Fixed coverage testing. WIP
2018-06-06 22:11:52 +02:00
jos
79071b5e4f
Fixed npm run test:browser not working (WIP)
2018-06-06 21:30:41 +02:00
jos
0c084b8e20
npm test working now
2018-06-06 15:36:36 +02:00
jos
4469f6bd0c
Remove support for implicit conversion of null to 0. See #830 .
2018-01-23 20:26:38 +01:00
jos
15aca5e4d0
Changed casing of the values of config options number and matrix to match the actual name of the classes.
2016-03-04 19:41:54 +01:00
jos
c558cf496e
Fixed all broken unit tests
2016-02-14 21:51:37 +01:00
jos
2353c4a61e
Renamed folders util to utils
2015-07-18 13:22:38 +02:00
jos
6e96d5a808
Merge branch 'develop' into v2
...
Conflicts:
HISTORY.md
bower.json
component.json
dist/math.js
dist/math.map
dist/math.min.js
lib/function/arithmetic/abs.js
lib/function/probability/gamma.js
lib/version.js
package.json
2015-04-22 21:43:56 +02:00
Max Bruckner
8ad525b66e
util/latex: get rid of many unnecessary curly braces
2015-04-19 11:08:00 +02:00
jos
1d5a972a58
Refactored combinations, factorial, gamma, permutations, pickRandom, random, randomInt to typed-functions
2015-04-15 21:30:32 +02:00
Max Bruckner
7adf0ebc53
LaTeX tests for functions
2015-04-05 14:29:10 +02:00
Favian Contreras
05c6dcaae5
Guard digits now a function of n. Updated Infinity! to be accurate (Infinity! == sqrt(tau)). Updated and cleaned up test cases.
2015-01-14 18:15:03 -08:00
Favian Contreras
05d8f5b5f6
Failed at adding gamma to the parser (attempted to add 1 to all the values while using gamma, then tried to wierdly overload ! token). I added BigNumber integer support for gamma to allow more flexibility when integrating it into the parser (if that is something that is done).
2014-12-17 16:07:26 -08:00
Favian Contreras
19e6ce057a
Removed BigNumber bad implementation. Also, cleaned up the code, switched the coefficients for Lanczos, and added extended Stirling approx.
2014-12-17 06:34:23 -08:00
Favian Contreras
33d76576d5
Updated use of bigPi, and adjusted the test cases as well.
2014-12-13 10:38:09 -08:00
Favian Contreras
3ca7d8e57b
No longer change the config state; now using new created state in test cases.
2014-12-11 11:20:47 -08:00
Favian Contreras
ea83be53c4
The tests now work, but still have use Math.PI.
2014-12-11 10:51:34 -08:00
Favian Contreras
5bc3e0d8c2
Faster factorial, and gamma implemented with tests.
2014-12-11 07:20:13 -08:00