mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
13 lines
351 B
JavaScript
13 lines
351 B
JavaScript
var assert = require('assert'),
|
|
latex = require('../../lib/utils/latex');
|
|
|
|
describe('util.latex', function() {
|
|
it('should convert symbols with indices', function () {
|
|
assert.equal(latex.toSymbol('alpha_1'), '\\alpha_{1}');
|
|
});
|
|
|
|
it('should convert units', function () {
|
|
assert.equal(latex.toSymbol('deg', true), '^\\circ');
|
|
});
|
|
});
|