Skip to content

Commit

Permalink
syntax: test that a[b]=c parses as a lit in posix
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Nov 24, 2016
1 parent 456f78c commit 7ac490f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions syntax/filetests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3145,12 +3145,11 @@ var fileTests = []testCase{
}}},
},
{
Strs: []string{"a[2]=(b)"},
Strs: []string{"a[2]=b"},
posix: litStmt("a[2]=b"),
bash: &Stmt{Assigns: []*Assign{{
Name: lit("a[2]"),
Value: word(
&ArrayExpr{List: litWords("b")},
),
Name: lit("a[2]"),
Value: litWord("b"),
}}},
},
{
Expand Down

0 comments on commit 7ac490f

Please sign in to comment.