Skip to content

Commit

Permalink
Remove unneeded escaped quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Nov 15, 2024
1 parent 6c5b48c commit 9c80174
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
28 changes: 14 additions & 14 deletions testsuite/tests/input/tex/Braket.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ describe('Braket', () => {
it('Braket-Set-small', () =>
toXmlMatch(
tex2mml('\\set{x}'),
`<math xmlns=\"http://www.w3.org/1998/Math/MathML\" data-latex=\"\\set{x}\" display=\"block\">
<mrow data-latex=\"\\set{x}\">
<mo data-mjx-texclass=\"OPEN\" stretchy=\"false\">{</mo>
<mi data-latex=\"x\">x</mi>
<mo data-mjx-texclass=\"CLOSE\" stretchy=\"false\">}</mo>
`<math xmlns="http://www.w3.org/1998/Math/MathML" data-latex="\\set{x}" display="block">
<mrow data-latex="\\set{x}">
<mo data-mjx-texclass="OPEN" stretchy="false">{</mo>
<mi data-latex="x">x</mi>
<mo data-mjx-texclass="CLOSE" stretchy="false">}</mo>
</mrow>
</math>`
));
Expand Down Expand Up @@ -265,16 +265,16 @@ describe('Braket', () => {
it('Braket-Set-over', () =>
toXmlMatch(
tex2mml('\\Set{x\\over y}'),
`<math xmlns=\"http://www.w3.org/1998/Math/MathML\" data-latex=\"\\Set{x\\over y}\" display=\"block\">
<mrow data-mjx-texclass=\"INNER\" data-latex=\"\\Set{x\\over y}\">
<mo data-mjx-texclass=\"OPEN\">{</mo>
<mspace width=\"0.167em\"></mspace>
<mfrac data-latex-item=\"\\over\">
<mi data-latex=\"x\">x</mi>
<mi data-latex=\"y\">y</mi>
`<math xmlns="http://www.w3.org/1998/Math/MathML" data-latex="\\Set{x\\over y}" display="block">
<mrow data-mjx-texclass="INNER" data-latex="\\Set{x\\over y}">
<mo data-mjx-texclass="OPEN">{</mo>
<mspace width="0.167em"></mspace>
<mfrac data-latex-item="\\over">
<mi data-latex="x">x</mi>
<mi data-latex="y">y</mi>
</mfrac>
<mspace width=\"0.167em\"></mspace>
<mo data-mjx-texclass=\"CLOSE\">}</mo>
<mspace width="0.167em"></mspace>
<mo data-mjx-texclass="CLOSE">}</mo>
</mrow>
</math>`
));
Expand Down
30 changes: 15 additions & 15 deletions testsuite/tests/input/tex/Physics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8602,23 +8602,23 @@ describe('Physics7_11', () => {
it('Matrices_Other_8', () =>
toXmlMatch(
tex2mml('\\begin{smallmatrix} a & b \\\\ c & d \\end{smallmatrix}'),
`<math xmlns=\"http://www.w3.org/1998/Math/MathML\" data-latex=\"\\begin{smallmatrix} a &amp; b \\\\ c &amp; d \\end{smallmatrix}\" display=\"block\">
<mstyle scriptlevel=\"1\" data-latex-item=\"{smallmatrix}\" data-latex=\"\\begin{smallmatrix} a &amp; b \\\\ c &amp; d \\end{smallmatrix}\">
<mtable data-mjx-smallmatrix=\"true\" columnspacing=\"0.333em\" rowspacing=\".2em\" displaystyle=\"false\">
`<math xmlns="http://www.w3.org/1998/Math/MathML" data-latex="\\begin{smallmatrix} a &amp; b \\\\ c &amp; d \\end{smallmatrix}" display="block">
<mstyle scriptlevel="1" data-latex-item="{smallmatrix}" data-latex="\\begin{smallmatrix} a &amp; b \\\\ c &amp; d \\end{smallmatrix}">
<mtable data-mjx-smallmatrix="true" columnspacing="0.333em" rowspacing=".2em" displaystyle="false">
<mtr>
<mtd>
<mi data-latex=\"a\">a</mi>
<mi data-latex="a">a</mi>
</mtd>
<mtd>
<mi data-latex=\"b\">b</mi>
<mi data-latex="b">b</mi>
</mtd>
</mtr>
<mtr>
<mtd>
<mi data-latex=\"c\">c</mi>
<mi data-latex="c">c</mi>
</mtd>
<mtd>
<mi data-latex=\"d\">d</mi>
<mi data-latex="d">d</mi>
</mtd>
</mtr>
</mtable>
Expand Down Expand Up @@ -9246,24 +9246,24 @@ describe('Physics7_2', () => {
it('Matrices_Small_1', () =>
toXmlMatch(
tex2mml('\\smallmatrixquantity*{a & b \\\\ c & d}'),
`<math xmlns=\"http://www.w3.org/1998/Math/MathML\" data-latex=\"\\smallmatrixquantity*{a &amp; b \\\\ c &amp; d}\" display=\"block\">
<mstyle scriptlevel=\"1\" data-latex-item=\"{smallmatrix}\" data-latex=\"\\smallmatrixquantity*{a &amp; b \\\\ c &amp; d}\">
<mtable data-mjx-smallmatrix=\"true\" columnspacing=\"0.333em\" rowspacing=\".2em\" displaystyle=\"false\">
`<math xmlns="http://www.w3.org/1998/Math/MathML" data-latex="\\smallmatrixquantity*{a &amp; b \\\\ c &amp; d}" display="block">
<mstyle scriptlevel="1" data-latex-item="{smallmatrix}" data-latex="\\smallmatrixquantity*{a &amp; b \\\\ c &amp; d}">
<mtable data-mjx-smallmatrix="true" columnspacing="0.333em" rowspacing=".2em" displaystyle="false">
<mtr>
<mtd>
<mrow data-mjx-texclass=\"ORD\" data-latex=\"{}\"></mrow>
<mi data-latex=\"a\">a</mi>
<mrow data-mjx-texclass="ORD" data-latex="{}"></mrow>
<mi data-latex="a">a</mi>
</mtd>
<mtd>
<mi data-latex=\"b\">b</mi>
<mi data-latex="b">b</mi>
</mtd>
</mtr>
<mtr>
<mtd>
<mi data-latex=\"c\">c</mi>
<mi data-latex="c">c</mi>
</mtd>
<mtd>
<mi data-latex=\"d\">d</mi>
<mi data-latex="d">d</mi>
</mtd>
</mtr>
</mtable>
Expand Down

0 comments on commit 9c80174

Please sign in to comment.