20 lines
391 B
JavaScript
20 lines
391 B
JavaScript
|
var vows = require('vows');
|
||
|
var assert = require('assert');
|
||
|
var suite = vows.describe('jStat');
|
||
|
|
||
|
require('../env.js');
|
||
|
|
||
|
suite.addBatch({
|
||
|
'linearalgebra': {
|
||
|
'topic': function() {
|
||
|
return jStat;
|
||
|
},
|
||
|
'pow function works': function(jStat) {
|
||
|
var A = jStat([[1, 2], [3, 4]]);
|
||
|
assert.deepEqual(A.pow(2), jStat([[1, 4], [9, 16]]));
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
suite.export(module);
|