Skip to content

Commit df8eb44

Browse files
authored
Fix test string indentation (#3280)
1 parent 12639a0 commit df8eb44

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2744
-2744
lines changed

β€Žtests/alias.rsβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ fn alias_nested_module() {
77
.write("bar.just", "baz:\n @echo BAZ")
88
.justfile(
99
"
10-
mod foo
10+
mod foo
1111
12-
alias b := foo::bar::baz
12+
alias b := foo::bar::baz
1313
14-
baz:
15-
@echo 'HERE'
14+
baz:
15+
@echo 'HERE'
1616
",
1717
)
1818
.arg("b")
@@ -26,9 +26,9 @@ fn unknown_nested_alias() {
2626
.write("foo.just", "baz: \n @echo FOO")
2727
.justfile(
2828
"
29-
mod foo
29+
mod foo
3030
31-
alias b := foo::bar::baz
31+
alias b := foo::bar::baz
3232
",
3333
)
3434
.arg("b")

β€Žtests/allow_duplicate_recipes.rsβ€Ž

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ fn allow_duplicate_recipes() {
55
Test::new()
66
.justfile(
77
"
8-
b:
9-
echo foo
10-
b:
11-
echo bar
8+
b:
9+
echo foo
10+
b:
11+
echo bar
1212
13-
set allow-duplicate-recipes
14-
",
13+
set allow-duplicate-recipes
14+
",
1515
)
1616
.stdout("bar\n")
1717
.stderr("echo bar\n")
@@ -23,13 +23,13 @@ fn allow_duplicate_recipes_with_args() {
2323
Test::new()
2424
.justfile(
2525
"
26-
b a:
27-
echo foo
28-
b c d:
29-
echo bar {{c}} {{d}}
26+
b a:
27+
echo foo
28+
b c d:
29+
echo bar {{c}} {{d}}
3030
31-
set allow-duplicate-recipes
32-
",
31+
set allow-duplicate-recipes
32+
",
3333
)
3434
.args(["b", "one", "two"])
3535
.stdout("bar one two\n")

β€Žtests/allow_duplicate_variables.rsβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ fn allow_duplicate_variables() {
55
Test::new()
66
.justfile(
77
"
8-
a := 'foo'
9-
a := 'bar'
8+
a := 'foo'
9+
a := 'bar'
1010
11-
set allow-duplicate-variables
11+
set allow-duplicate-variables
1212
13-
b:
14-
echo {{a}}
13+
b:
14+
echo {{a}}
1515
",
1616
)
1717
.arg("b")

β€Žtests/assignment.rsβ€Ž

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ fn set_export_parse_error() {
55
Test::new()
66
.justfile(
77
"
8-
set export := fals
9-
",
8+
set export := fals
9+
",
1010
)
1111
.stderr(
1212
"
13-
error: Expected keyword `true` or `false` but found identifier `fals`
14-
β€”β€”β–Ά justfile:1:15
15-
β”‚
16-
1 β”‚ set export := fals
17-
β”‚ ^^^^
18-
",
13+
error: Expected keyword `true` or `false` but found identifier `fals`
14+
β€”β€”β–Ά justfile:1:15
15+
β”‚
16+
1 β”‚ set export := fals
17+
β”‚ ^^^^
18+
",
1919
)
2020
.failure();
2121
}
@@ -25,17 +25,17 @@ fn set_export_parse_error_eol() {
2525
Test::new()
2626
.justfile(
2727
"
28-
set export :=
29-
",
28+
set export :=
29+
",
3030
)
3131
.stderr(
3232
"
33-
error: Expected identifier, but found end of line
34-
β€”β€”β–Ά justfile:1:14
35-
β”‚
36-
1 β”‚ set export :=
37-
β”‚ ^
38-
",
33+
error: Expected identifier, but found end of line
34+
β€”β€”β–Ά justfile:1:14
35+
β”‚
36+
1 β”‚ set export :=
37+
β”‚ ^
38+
",
3939
)
4040
.failure();
4141
}

0 commit comments

Comments
Β (0)