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

@@ -2733,6 +2733,16 @@ describe("A macro expander", function() {
expect("\\hspace{1em}").toParseLike("\\kern1em");
expect("\\hspace*{1em}").toParseLike("\\kern1em");
});
it("should expand \\limsup as expected", () => {
expect("\\limsup")
.toParseLike("\\mathop{\\operatorname{lim\\,sup}}\\limits");
});
it("should expand \\liminf as expected", () => {
expect("\\liminf")
.toParseLike("\\mathop{\\operatorname{lim\\,inf}}\\limits");
});
});
describe("A parser taking String objects", function() {