diff --git a/commands_test.go b/commands_test.go index 370a0a9..d7cebec 100644 --- a/commands_test.go +++ b/commands_test.go @@ -96,7 +96,7 @@ func TestReadCmd(t *testing.T) { func TestReadWithAdvancedFilterCmd(t *testing.T) { cmd := getRootCommand() - result := test.RunCmd(cmd, "read examples/sample.yaml b.e(name == sam).value") + result := test.RunCmd(cmd, "read -v examples/sample.yaml b.e(name==sam).value") if result.Error != nil { t.Error(result.Error) } diff --git a/examples/sample.yaml b/examples/sample.yaml index 603dc54..1fb9335 100644 --- a/examples/sample.yaml +++ b/examples/sample.yaml @@ -1,4 +1,9 @@ -- name: fred - value: 3 -- name: sam - value: 4 \ No newline at end of file +a: true +b: + c: 2 + d: [3, 4, 5] + e: + - name: fred + value: 3 + - name: sam + value: 4 \ No newline at end of file