Skip to content
Permalink
Browse files

make gofumpt happy

Just a stricter gofmt; see mvdan.cc/gofumpt.
  • Loading branch information...
mvdan committed Mar 31, 2019
1 parent fdf7a3f commit 74d04d34b7caa77c6bd3ca7cda306ca1d6ea1856
Showing with 14 additions and 9 deletions.
  1. +0 −1 _js/main.go
  2. +0 −1 expand/braces_test.go
  3. +14 −7 syntax/filetests_test.go
@@ -84,7 +84,6 @@ func main() {
return jsFn(js.MakeFullWrapper(node))
}
syntax.Walk(node, fn)

})
stx.Set("DebugPrint", func(node syntax.Node) {
syntax.DebugPrint(os.Stdout, node)
@@ -165,7 +165,6 @@ func TestBraces(t *testing.T) {
t.Fatalf("mismatch in %q\nwant:\n%s\ngot: %s",
inStr, wantStr, gotStr)
}

})
}
}
@@ -2273,25 +2273,29 @@ var fileTests = []testCase{
{
Strs: []string{`${a^b} ${a^^b} ${a,b} ${a,,b}`},
bash: call(
word(&ParamExp{Param: lit("a"),
word(&ParamExp{
Param: lit("a"),
Exp: &Expansion{
Op: UpperFirst,
Word: litWord("b"),
},
}),
word(&ParamExp{Param: lit("a"),
word(&ParamExp{
Param: lit("a"),
Exp: &Expansion{
Op: UpperAll,
Word: litWord("b"),
},
}),
word(&ParamExp{Param: lit("a"),
word(&ParamExp{
Param: lit("a"),
Exp: &Expansion{
Op: LowerFirst,
Word: litWord("b"),
},
}),
word(&ParamExp{Param: lit("a"),
word(&ParamExp{
Param: lit("a"),
Exp: &Expansion{
Op: LowerAll,
Word: litWord("b"),
@@ -2302,19 +2306,22 @@ var fileTests = []testCase{
{
Strs: []string{`${a@E} ${b@a} ${@@Q}`},
bsmk: call(
word(&ParamExp{Param: lit("a"),
word(&ParamExp{
Param: lit("a"),
Exp: &Expansion{
Op: OtherParamOps,
Word: litWord("E"),
},
}),
word(&ParamExp{Param: lit("b"),
word(&ParamExp{
Param: lit("b"),
Exp: &Expansion{
Op: OtherParamOps,
Word: litWord("a"),
},
}),
word(&ParamExp{Param: lit("@"),
word(&ParamExp{
Param: lit("@"),
Exp: &Expansion{
Op: OtherParamOps,
Word: litWord("Q"),

0 comments on commit 74d04d3

Please sign in to comment.
You can’t perform that action at this time.