Skip to content

Commit

Permalink
Add test for the new feature
Browse files Browse the repository at this point in the history
  • Loading branch information
aaruni96 committed Mar 16, 2022
1 parent 3bfd44d commit 5af48cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/katex-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,10 @@ describe("A begin/end parser", function() {
expect`\begin{array}{cc}a&b\\c&d\end{array}`.toParse();
});

it("should parse an environment with argument in repetition format", function() {
expect`\begin{array}{*{35}{l}} x+y\le 12, \ 2x-y\ge 0, \ x-2y\le 0\end{array}`.toParse();
});

it("should parse and build an empty environment", function() {
expect`\begin{aligned}\end{aligned}`.toBuild();
expect`\begin{matrix}\end{matrix}`.toBuild();
Expand Down

0 comments on commit 5af48cf

Please sign in to comment.