mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
parse: Test against bogus command leader.
This commit is contained in:
parent
8affd31812
commit
7f58514b37
|
@ -348,8 +348,10 @@ var badCases = []struct {
|
|||
{")", 0}, {"]", 0}, {"}", 0},
|
||||
// Unclosed parens.
|
||||
{"a (", 3}, {"a [", 3}, {"a {", 3},
|
||||
// Ampersand
|
||||
// Bogus ampersand.
|
||||
{"a &", 3}, {"a [&", 4},
|
||||
// Bogus command leader.
|
||||
{"else echo 233", 0},
|
||||
}
|
||||
|
||||
func TestParseError(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user