feat: support \angl and \angln (#2334)

* Support \angl and \angln

* Update screenshots

* Update documentation
This commit is contained in:
Ron Kok
2020-07-25 06:53:11 -07:00
committed by GitHub
parent d1ad2e0b8b
commit e76857ec03
10 changed files with 88 additions and 11 deletions

View File

@@ -2465,6 +2465,24 @@ describe("A strike-through builder", function() {
});
});
describe("A actuarial angle parser", function() {
it("should not fail in math mode", function() {
expect`a_{\angl{n}}`.toParse();
});
it("should fail in text mode", function() {
expect`\text{a_{\angl{n}}}`.not.toParse();
});
});
describe("A actuarial angle builder", function() {
it("should not fail", function() {
expect`a_{\angl{n}}`.toBuild();
expect`a_{\angl{n}i}`.toBuild();
expect`a_{\angl n}`.toBuild();
expect`a_\angln`.toBuild();
});
});
describe("A phantom parser", function() {
it("should not fail", function() {
expect`\phantom{x}`.toParse();