Implement correct macros for liminf and limsup, fixes #111 (#887)

* Implement correct macros for liminf and limsup, fixes #111

* fix nits
This commit is contained in:
Kevin Barabash
2017-12-26 17:11:10 -07:00
committed by GitHub
parent c883b3d54d
commit 7229f02d8f
12 changed files with 159 additions and 23 deletions

View File

@@ -51,6 +51,19 @@ describe("A MathML builder", function() {
expect(getMathML("\\textstyle\\sum_a^b")).toMatchSnapshot();
});
it("should output \\limsup_{x \\rightarrow \\infty} correctly in " +
"\\textstyle", () => {
const mathml = getMathML("\\limsup_{x \\rightarrow \\infty}");
expect(mathml).toMatchSnapshot();
});
it("should output \\limsup_{x \\rightarrow \\infty} in " +
"displaymode correctly", () => {
const settings = new Settings({displayMode: true});
const mathml = getMathML("\\limsup_{x \\rightarrow \\infty}", settings);
expect(mathml).toMatchSnapshot();
});
it('should use <mpadded> for raisebox', () => {
expect(getMathML("\\raisebox{0.25em}{b}")).toMatchSnapshot();
});