Skip to content

Commit 94b8314

Browse files
committed
Fix #523 -- added 'lim' to moveable limits def
1 parent b21d5b9 commit 94b8314

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

Rules/Braille/ASCIIMath/definitions.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"", "∳", "∲", "∱", "∰", "∯", "∮", "∭", "∬", "∫",
2222
"", "∐", "∏", "⫿", "⫼", "⨉", "⨈", "⨇", "⨆", "⨅",
2323
"", "⨀", "⋂", "⋁", "⋀", "⨄", "⨃", "⋃", "⨁", "⨞", "⨝", "⨊", "∑",
24+
"lim"
2425
}
2526

2627
- Accents: {

tests/braille/ASCIIMath/other.rs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,34 @@ fn mixed_fraction() -> Result<()> {
278278
return Ok(());
279279

280280
}
281+
282+
#[test]
283+
fn lim_subscript_bug_523() -> Result<()> {
284+
let expr = r#"<math xmlns="http://www.w3.org/1998/Math/MathML">
285+
<mstyle displaystyle="true">
286+
<munder>
287+
<mo>lim</mo>
288+
<mrow>
289+
<mi>N</mi>
290+
<mo>&#x2192;</mo>
291+
<mo>&#x221E;</mo>
292+
</mrow>
293+
</munder>
294+
<mrow>
295+
<munderover>
296+
<mo>&#x2211;</mo>
297+
<mrow>
298+
<mi>i</mi>
299+
<mo>=</mo>
300+
<mn>0</mn>
301+
</mrow>
302+
<mi>N</mi>
303+
</munderover>
304+
</mrow>
305+
</mstyle>
306+
</math>"#;
307+
test_braille("ASCIIMath", expr, r#"lim_(N->oo) sum_(i=0)^N"#)?;
308+
return Ok(());
309+
310+
}
311+

0 commit comments

Comments
 (0)