Skip to content

Commit

Permalink
Adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 19, 2024
1 parent b153445 commit 5e5eb3a
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 51 deletions.
7 changes: 4 additions & 3 deletions tests/testthat/fun_dec/line_break_fun_dec-out.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ a <- function(x,
}

a <- function(
#
x,
y) {
#
x,
y
) {
x - 1
}
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
function(a =
33,
b
) {}
33,
b
) {}

function(a =
33,
b) {}
33,
b) {}

function(a,
b,
c
) {}
b,
c
) {}

function(a,
b,
c) {}
b,
c) {}

function(ss,
a =
3,
er =
4
) {}
a =
3,
er =
4
) {}

function(a =
b,
Expand Down
39 changes: 22 additions & 17 deletions tests/testthat/indention_operators/eq_formals_complex_tokens-out.R
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
function(
a =
33,
b) {}
a =
33,
b
) {}

function(
a =
33,
b) {}
a =
33,
b
) {}

function(
a,
b,
c) {}
a,
b,
c
) {}

function(
a,
b,
c) {}
a,
b,
c
) {}

function(
ss,
a =
3,
er =
4) {}
ss,
a =
3,
er =
4
) {}

function(a =
b,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ b
# multiple nested levels
{
v <- function(x =
122,
y) {
122,
y) {
}
}

Expand Down
32 changes: 18 additions & 14 deletions tests/testthat/unindention/mixed-double-out.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,33 @@ function(x,

# double
function(
x,
y) {
x,
y
) {
1
}


function(
x,
y,
k) {
x,
y,
k
) {
1
}


function(
x,
y) {
x,
y
) {
1
}


function(
x, y) {
x, y
) {
1
}

Expand All @@ -72,23 +76,23 @@ function(x,

# last brace
function(
x, y) {
x, y) {
NULL
}

function(
x, y) {
x, y) {
NULL
}

function(
x,
y) {
x,
y) {
NULL
}

function(
x,
y) {
x,
y) {
NULL
}

0 comments on commit 5e5eb3a

Please sign in to comment.