about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-contains-nested-non-set.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-29T17·38+0300
committertazjin <tazjin@tvl.su>2022-09-30T12·31+0000
commitf0f5435e25541c6f1ae17e77d44c54df881320cc (patch)
tree439e4d060e028bb5de56183569d814c102f5f46a /tvix/eval/src/tests/tvix_tests/eval-okay-contains-nested-non-set.nix
parentda1e3e9ac586747cf8d65a257f330706b051d06e (diff)
test(tvix/eval): reactivate nested key tests in plain attribute sets r/5003
Change-Id: Id25cde5a6562e1598dcbbf7945ecdfacac5faed7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6807
Reviewed-by: grfn <grfn@gws.fyi>
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-contains-nested-non-set.nix')
-rw-r--r--tvix/eval/src/tests/tvix_tests/eval-okay-contains-nested-non-set.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-contains-nested-non-set.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-contains-nested-non-set.nix
new file mode 100644
index 000000000000..361ba9144594
--- /dev/null
+++ b/tvix/eval/src/tests/tvix_tests/eval-okay-contains-nested-non-set.nix
@@ -0,0 +1,3 @@
+# ? operator should work even if encountering a non-set value on the
+# walk
+{ a.b = 42; } ? a.b.c