test: add mtext bold-fraktur text use case

This commit is contained in:
Alexandre Nunes 2020-09-17 11:39:31 -03:00
parent 758767e14c
commit 5464060621
1 changed files with 14 additions and 0 deletions

View File

@ -1444,5 +1444,19 @@ describe('#convert', () => {
expect(result).toBe('\\mathfrak{Creepy}');
});
describe('mtext with mathvariant attribute setted as "bold-fraktur"', () => {
const mathml = `
<root>
<math xmlns = "http://www.w3.org/1998/Math/MathML">
<mtext mathvariant="bold-fraktur">Creepy</mtext>
</math>
</root>
`;
const result = MathMLToLaTeX.convert(mathml);
expect(result).toBe('\\mathfrak{Creepy}');
});
});
});