diff --git a/__test__/index.test.ts b/__test__/index.test.ts index 8e7b206..acac510 100755 --- a/__test__/index.test.ts +++ b/__test__/index.test.ts @@ -419,6 +419,37 @@ describe('#convert', () => { expect(result).toBe('A = \\begin{vmatrix}\n x & y \\\\\n z & w \n\\end{vmatrix}'.replace(/\n/g, '')); }); }); + + describe('with open attribute as {', () => { + it('returns a pmatrix representation in latex', () => { + const mathml = ` + + + + A + = + + + + x + y + + + z + w + + + + + + + `; + + const result = MathMLToLaTeX.convert(mathml); + + expect(result).toBe('A = \\begin{Bmatrix}\n x & y \\\\\n z & w \n\\end{Bmatrix}'.replace(/\n/g, '')); + }); + }); }); }); });