---
cases:
  - note: walkbuiltin/wildcard-path same values as when path provided
    query: x = data.testing.same_values
    modules:
      - |
        package testing

        obj := {
        	"bar": "baz",
        	"qux": [
        		1,
        		{"p": "rego", "q": "rules"},
        		{1, 2, 3, {"a": "b", "c": {"d", "e", 1}}},
        	],
        }

        with_path contains value if {
        	walk(obj, [path, value])
        }

        without_path contains value if {
        	walk(obj, [_, value])
        }

        same_values := with_path == without_path
    want_result:
      - x: true
