-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use only one regex for all codeformatters
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from mdformat._util import is_md_equal | ||
|
||
|
||
def test_is_md_equal(): | ||
md1 = """ | ||
paragraph | ||
```js | ||
console.log() | ||
``` | ||
paragr | ||
""" | ||
md2 = """ | ||
paragraph | ||
```js | ||
bonsole.l()g | ||
``` | ||
paragr""" | ||
assert not is_md_equal(md1, md2) | ||
assert is_md_equal(md1, md2, codeformatters=("js", "go")) |