From ddaf33fef5beea2764c7c8b856587a923c9ad95d Mon Sep 17 00:00:00 2001 From: Alexandre Nunes Date: Sat, 19 Sep 2020 00:21:50 -0300 Subject: [PATCH] test: add munder tag use case --- __test__/index.test.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/__test__/index.test.ts b/__test__/index.test.ts index 76998dd..fb449b1 100755 --- a/__test__/index.test.ts +++ b/__test__/index.test.ts @@ -1501,4 +1501,31 @@ describe('#convert', () => { }); }); }); + + describe('given math string with munder tag', () => { + describe('where its first child is a mrow and second is mo containing ⏟', () => { + test('wrap it content inside underbrace command', () => { + const mathml = ` + + + + + x + + + y + + + z + + + + + + `; + + const result = MathMLToLaTeX.convert(mathml); + + expect(result).toBe('\\underbrace{x + y + z}'); + }); + }); + }); });