test: add mtext double-struck text case

This commit is contained in:
Alexandre Nunes 2020-09-17 11:35:33 -03:00
parent 8aa1b7a665
commit a908efe165
1 changed files with 14 additions and 0 deletions

View File

@ -1416,5 +1416,19 @@ describe('#convert', () => {
expect(result).toBe('\\textbf{\\textit{ Theorem of Pythagoras }}');
});
describe('mtext with mathvariant attribute setted as "double-struck"', () => {
const mathml = `
<root>
<math xmlns = "http://www.w3.org/1998/Math/MathML">
<mtext mathvariant="double-struck">R</mtext>
</math>
</root>
`;
const result = MathMLToLaTeX.convert(mathml);
expect(result).toBe('\\mathbb{R}');
});
});
});