mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
14 lines
354 B
JavaScript
14 lines
354 B
JavaScript
// test Help
|
|
var assert = require('assert');
|
|
var math = require('../../index.js');
|
|
|
|
var help = new math.type.Help(math, math.expression.docs.sin);
|
|
|
|
describe('help', function() {
|
|
|
|
it('should generate the help for a function', function() {
|
|
assert.deepEqual(help.doc.name, 'sin');
|
|
assert.deepEqual(help.doc, math.expression.docs.sin);
|
|
});
|
|
|
|
}); |