mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-07 06:10:36 +00:00
Compare commits
1 Commits
f04d37a4f7
...
1d68b3a01a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d68b3a01a |
3
go.mod
3
go.mod
@ -30,6 +30,5 @@ require (
|
||||
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
|
||||
)
|
||||
|
||||
go 1.21.0
|
||||
|
||||
go 1.21
|
||||
toolchain go1.22.5
|
||||
|
||||
@ -11,11 +11,6 @@ func getExpressionParser() ExpressionParserInterface {
|
||||
return ExpressionParser
|
||||
}
|
||||
|
||||
func TestParserCreateMapColonOnItsOwn(t *testing.T) {
|
||||
_, err := getExpressionParser().ParseExpression(":")
|
||||
test.AssertResultComplex(t, "':' expects 2 args but there is 0", err.Error())
|
||||
}
|
||||
|
||||
func TestParserNoMatchingCloseBracket(t *testing.T) {
|
||||
_, err := getExpressionParser().ParseExpression(".cat | with(.;.bob")
|
||||
test.AssertResultComplex(t, "bad expression - probably missing close bracket on WITH", err.Error())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user