Skip to content

Commit

Permalink
Add CRLF formatter test
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Dec 2, 2024
1 parent a74bcf7 commit 9e89a60
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
* text=auto eol=lf

# Windows specific test files where we need CRLF endings
crates/air_r_formatter/tests/specs/r/crlf/*.R text eol=crlf
2 changes: 2 additions & 0 deletions crates/air_r_formatter/tests/specs/r/crlf/string_value.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"multiline
string"
30 changes: 30 additions & 0 deletions crates/air_r_formatter/tests/specs/r/crlf/string_value.R.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
source: crates/air_formatter_test/src/snapshot_builder.rs
info: r/crlf/string_value.R
---
# Input

```R
"multiline
string"
```


=============================

# Outputs

## Output 1

-----
Indent style: Tab
Indent width: 2
Line ending: LF
Line width: 80
-----

```R
"multiline
string"
```

0 comments on commit 9e89a60

Please sign in to comment.