Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtomjhj committed Feb 9, 2022
1 parent e82be74 commit a046794
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/table-format.vader
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ Expect (table is not modified):
|---|---|
| c | d |

Given markdown (indented table);
| a | b |
|---|---|
| c | d |

Execute (format well formatted, indented table):
TableFormat

Expect (table is not modified):
| a | b |
|---|---|
| c | d |

Given markdown;
| left |right| center ||
| :- | --: |:---:|:|
Expand All @@ -42,3 +55,16 @@ Expect (preserve colons to align text):
| left | right | center | |
|:-----|------:|:------:|:--|
| left | right | center | |

Given markdown (indented table with colons);
| left |right| center ||
| :- | --: |:---:|:|
| left |right| center ||

Execute (format indented table with colons):
TableFormat

Expect (preserve colons to align text):
| left | right | center | |
|:-----|------:|:------:|:--|
| left | right | center | |

0 comments on commit a046794

Please sign in to comment.