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
99ab11b234
Dropped constant uninitialized
2018-02-04 13:09:09 +01:00
jos
f61bb6cf94
Fixed #856 : function subset not returning non-primitive scalars from Arrays correctly
2017-05-16 21:41:03 +02:00
jos
2adf01e548
Getting/setting object properties working (still needs a refactoring step)
2016-01-02 15:16:12 +01:00
jos
931736658d
Added support for getting/setting object properties to Index and math.subset
2015-12-04 09:53:35 +01:00
Rogelio J. Baucells
7579412f7d
Index dimension with immutable matrix
2015-05-20 17:41:03 -04:00
rjbaucells
c24235ec3b
tests - final
...
missing file
2015-05-13 20:30:49 -04:00
jos
811508906c
Refactored functions range, subset, concat.transform, map.transform, max.transform, mean.transform, min.transform, range.transform, subset.transform to typed-functions
2015-04-27 19:11:21 +02:00
Max Bruckner
8ad525b66e
util/latex: get rid of many unnecessary curly braces
2015-04-19 11:08:00 +02:00
Max Bruckner
7adf0ebc53
LaTeX tests for functions
2015-04-05 14:29:10 +02:00
jos
454efa15dc
Merge branch 'develop'
...
Conflicts:
HISTORY.md
2014-08-21 20:41:32 +02:00
jos
7f6b13a797
Changed the default value of new entries in resized matrices to zero.
2014-08-12 22:35:56 +02:00
jos
f3f5819718
Fixed function subset not being able to return a scalar value null or undefined (see #205 )
2014-08-06 09:46:08 +02:00
jos
8a12c8e9bc
Fixed #200 : A new instanceof of math.js must now be created as math.create([options]) instead of math([options])
2014-08-03 21:42:12 +02:00
josdejong
97cbb0093f
Moved errors to their own namespace and folder
2014-04-11 18:02:29 +02:00
josdejong
492d7f4c4f
Moved ArgumentsError from lib/type/ to lib/util/
2014-04-06 21:25:46 +02:00
josdejong
9ae103c394
More unit tests
2014-03-21 21:38:26 +01:00
josdejong
b366d97a20
Function resize now has an extra optional parameter defaultValue
2013-11-21 12:09:12 +01:00
josdejong
d2e55a0132
Math.js must be instantiated now, static calls are no longer supported
2013-10-26 15:00:06 +02:00
josdejong
c8a289a08c
Removed unnecessary .js suffix in module require statements
2013-10-20 14:01:31 +02:00
josdejong
f48c07bdd8
Getting or setting a subset of a matrix will automatically squeezed/unsqueezed the submatrix
2013-09-25 21:59:35 +02:00
josdejong
86ea2a7343
Removed support for scalars from function subset
2013-08-31 20:28:45 +02:00
josdejong
6273ad998f
Removed usage of math.eval from function unit tests
2013-08-31 10:53:14 +02:00
josdejong
35e789d3fe
Made math.subset, Matrix.get, Matrix.set more strict: only accept an Index
2013-08-18 15:28:20 +02:00
josdejong
d18e2c69a4
Adjusted tests for new Index
2013-08-18 15:10:26 +02:00
Sebastien Piquemal
a3b44340e4
refactored test/function/matrix and test/function/probability to mocha
2013-08-17 03:04:07 +04:00
Sebastien Piquemal
a6b4ad7526
fixed tests
2013-08-14 15:43:32 +04:00
Sebastien Piquemal
aa0249d458
fixed npm install, changed src to lib
2013-08-14 15:00:12 +04:00
josdejong
aa471db411
Upperbound of range is now excluded
2013-08-09 22:09:46 +02:00
josdejong
8cc9ceb980
Changed all source files into node.js modules
2013-08-05 23:05:23 +02:00