time-to-botec/squiggle/node_modules/jstat/test/linearalgebra/abs-test.js

20 lines
389 B
JavaScript
Raw Normal View History

var vows = require('vows');
var assert = require('assert');
var suite = vows.describe('jStat');
require('../env.js');
suite.addBatch({
'linearalgebra': {
'topic': function() {
return jStat;
},
'abs function works': function(jStat) {
var A = jStat([[1, -1, 0, -10]]);
assert.deepEqual(A.abs(), jStat([[1, 1, 0, 10]]));
}
}
});
suite.export(module);