about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-access-strange-identifier.exp
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-22T21·47+0300
committertazjin <tazjin@tvl.su>2022-09-22T23·07+0000
commit55459f02fcdca8612673f2df8ba54cb995ae06b6 (patch)
tree1426b6b322a197dacf1095e514f3887753dfa9f5 /tvix/eval/src/tests/tvix_tests/eval-okay-access-strange-identifier.exp
parentc46025d52011632b9e53bc96cc115c1d74bfbf7a (diff)
test(tvix/eval): add a test for accessing "strange" identifiers r/4959
Because `inherit` can take string identifiers, we can access
arbitrarily weird identifiers in scopes using it.

Change-Id: Ic868233221befa160538dd2ffaff1cc7f566585a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6748
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-access-strange-identifier.exp')
-rw-r--r--tvix/eval/src/tests/tvix_tests/eval-okay-access-strange-identifier.exp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-access-strange-identifier.exp b/tvix/eval/src/tests/tvix_tests/eval-okay-access-strange-identifier.exp
new file mode 100644
index 000000000000..d81cc0710eb6
--- /dev/null
+++ b/tvix/eval/src/tests/tvix_tests/eval-okay-access-strange-identifier.exp
@@ -0,0 +1 @@
+42