Skip to content

Commit

Permalink
Update all snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Jan 8, 2025
1 parent eb7f512 commit 8586c65
Show file tree
Hide file tree
Showing 29 changed files with 895 additions and 890 deletions.
490 changes: 245 additions & 245 deletions crates/air_r_formatter/tests/specs/r/binary_expression.R.snap

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ argument_that_is_quite_quite_quite_quite_long(argument_that_is_quite_quite_quite
## Output 1

-----
Indent style: Tab
Indent width: 4
Indent style: Space
Indent width: 2
Line ending: LF
Line width: 80
-----
Expand Down Expand Up @@ -89,80 +89,80 @@ argument_that_is_quite_quite_quite_quite_long:argument_that_is_quite_quite_quite
# If the RHS contains other complex expressions, they are allowed to break
argument_that_is_quite_quite_quite_quite_long$argument_that_is_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long@argument_that_is_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long::argument_that_is_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long:::argument_that_is_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long?argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long**argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long^argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long:argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
# `$` and `@` and regular binary operators are allowed complex expressions on their LHS
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)$argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)@argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)?argument_that_is_quite_quite_quite_quite_long
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)**argument_that_is_quite_quite_quite_quite_long
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)^argument_that_is_quite_quite_quite_quite_long
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
):argument_that_is_quite_quite_quite_quite_long
# Chaining of method calls
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)$argument_that_is_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)@argument_that_is_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)?argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)**argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)^argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
):argument_that_is_quite_quite_quite_quite_long(
argument_that_is_quite_quite_quite_long
argument_that_is_quite_quite_quite_long
)
```

Expand Down
100 changes: 50 additions & 50 deletions crates/air_r_formatter/tests/specs/r/braced_expressions.R.snap
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ fn({{
## Output 1

-----
Indent style: Tab
Indent width: 4
Indent style: Space
Indent width: 2
Line ending: LF
Line width: 80
-----
Expand All @@ -108,11 +108,11 @@ if (a) {
}
{
1
1
}
{
# comment
# comment
}
# ------------------------------------------------------------------------
Expand All @@ -126,91 +126,91 @@ fn(mean({{ var }}))
fn({{ var }} + 1)
fn(
{{
var_that_is_extremely_long_and_eventually_forces_a_line_break_once_we_eventually_get_to_the_end
}}
{{
var_that_is_extremely_long_and_eventually_forces_a_line_break_once_we_eventually_get_to_the_end
}}
)
fn(
{{
# Leading of `var`
var
}}
{{
# Leading of `var`
var
}}
)
# Comprehensive comment test
fn(
# C1
# C2 (lifted up)
# C3 (lifted up)
{{
# C4 (leads var)
# C5 (leads var)
var
# C6
}} # C7 (this line, but after folded 2nd `}`)
# C8 (after both `}}`) # C9 (same line as C8)
# C10
# C1
# C2 (lifted up)
# C3 (lifted up)
{{
# C4 (leads var)
# C5 (leads var)
var
# C6
}} # C7 (this line, but after folded 2nd `}`)
# C8 (after both `}}`) # C9 (same line as C8)
# C10
)
# Not curly-curly, not a symbol
fn({
{
1
}
{
1
}
})
fn({
{
(var)
}
{
(var)
}
})
# Not curly-curly, not inside an argument
{
{
var
}
{
var
}
}
function(
a = {
{
var
}
}
a = {
{
var
}
}
) {
}
# Not curly-curly, 2 inner expressions
fn({
{
1
2
}
{
1
2
}
})
# Not curly-curly, 2 outer expressions
fn({
{
foo
}
bar
{
foo
}
bar
})
# Not curly-curly, 0 inner expressions
fn({
{
}
{
}
})
# Not curly-curly, 0 inner expressions (important, even with dangling comment!)
fn({
{
# dangling
}
{
# dangling
}
})
```

# Lines exceeding max width of 80 characters
```
32: var_that_is_extremely_long_and_eventually_forces_a_line_break_once_we_eventually_get_to_the_end
32: var_that_is_extremely_long_and_eventually_forces_a_line_break_once_we_eventually_get_to_the_end
```
Loading

0 comments on commit 8586c65

Please sign in to comment.