diff options
| author | Pig Fang <g-plane@hotmail.com> | 2024-08-02 20:12:51 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-02 12:12:51 +0000 |
| commit | 124a13280e3d71ed14ef0899b7bfd012f82ceb6e (patch) | |
| tree | d3cd42098c74c0b665c3ea1090660ae87391be94 /tests/testdata | |
| parent | ea121c9a0e162a83beeae62ed9e5a7911877bcbc (diff) | |
feat(fmt): support YAML (#24717)
Diffstat (limited to 'tests/testdata')
| -rw-r--r-- | tests/testdata/fmt/badly_formatted.md | 7 | ||||
| -rw-r--r-- | tests/testdata/fmt/badly_formatted.yaml | 6 | ||||
| -rw-r--r-- | tests/testdata/fmt/badly_formatted_fixed.md | 5 | ||||
| -rw-r--r-- | tests/testdata/fmt/badly_formatted_fixed.yaml | 6 |
4 files changed, 23 insertions, 1 deletions
diff --git a/tests/testdata/fmt/badly_formatted.md b/tests/testdata/fmt/badly_formatted.md index 26afe483b..05a4b2f97 100644 --- a/tests/testdata/fmt/badly_formatted.md +++ b/tests/testdata/fmt/badly_formatted.md @@ -43,4 +43,9 @@ function foo(): number { "numbers": ["1", "2"] } -```
\ No newline at end of file +``` + +```yaml +- item1 +- item2 +``` diff --git a/tests/testdata/fmt/badly_formatted.yaml b/tests/testdata/fmt/badly_formatted.yaml new file mode 100644 index 000000000..69c89f377 --- /dev/null +++ b/tests/testdata/fmt/badly_formatted.yaml @@ -0,0 +1,6 @@ +key1 : value1 +key2 : value2 +key3: + - item1 + - item2 + - item3 diff --git a/tests/testdata/fmt/badly_formatted_fixed.md b/tests/testdata/fmt/badly_formatted_fixed.md index 8ba74cac3..7a7d1913b 100644 --- a/tests/testdata/fmt/badly_formatted_fixed.md +++ b/tests/testdata/fmt/badly_formatted_fixed.md @@ -35,3 +35,8 @@ function foo(): number { "numbers": ["1", "2"] } ``` + +```yaml +- item1 +- item2 +``` diff --git a/tests/testdata/fmt/badly_formatted_fixed.yaml b/tests/testdata/fmt/badly_formatted_fixed.yaml new file mode 100644 index 000000000..e167d34c2 --- /dev/null +++ b/tests/testdata/fmt/badly_formatted_fixed.yaml @@ -0,0 +1,6 @@ +key1: value1 +key2: value2 +key3: + - item1 + - item2 + - item3 |
