From 5c8e26920d9113eec683beeac125ea25bd68761c Mon Sep 17 00:00:00 2001 From: Alexandre Nunes Date: Thu, 17 Sep 2020 11:45:54 -0300 Subject: [PATCH] test: add mtext monospace text use case --- __test__/index.test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/__test__/index.test.ts b/__test__/index.test.ts index f7c11d4..c68667f 100755 --- a/__test__/index.test.ts +++ b/__test__/index.test.ts @@ -1459,6 +1459,20 @@ describe('#convert', () => { expect(result).toBe('\\mathfrak{Creepy}'); }); + describe('mtext with mathvariant attribute setted as "monospace"', () => { + const mathml = ` + + + simple text + + + `; + + const result = MathMLToLaTeX.convert(mathml); + + expect(result).toBe('\\mathtt{simple text}'); + }); + describe('mtext with mathvariant attribute setted as "script"', () => { const mathml = `