From 7bab0c26ee8d35488a98ff00474e1447bb14c699 Mon Sep 17 00:00:00 2001 From: sterni Date: Wed, 23 Nov 2022 20:51:31 +0100 Subject: test(tvix/eval): verify pointer equality in list comparisons Change-Id: I617d402c8ecc7aaf607c4bdcd58a06ebddb71fac Reviewed-on: https://cl.tvl.fyi/c/depot/+/7370 Reviewed-by: tazjin Tested-by: BuildkiteCI Reviewed-by: Adam Joseph --- tvix/eval/src/tests/tvix_tests/eval-okay-value-pointer-compare.exp | 1 + tvix/eval/src/tests/tvix_tests/eval-okay-value-pointer-compare.nix | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-value-pointer-compare.exp create mode 100644 tvix/eval/src/tests/tvix_tests/eval-okay-value-pointer-compare.nix (limited to 'tvix/eval/src') diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-value-pointer-compare.exp b/tvix/eval/src/tests/tvix_tests/eval-okay-value-pointer-compare.exp new file mode 100644 index 000000000000..27ba77ddaf61 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-value-pointer-compare.exp @@ -0,0 +1 @@ +true diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-value-pointer-compare.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-value-pointer-compare.nix new file mode 100644 index 000000000000..f60d27d38157 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-value-pointer-compare.nix @@ -0,0 +1,6 @@ +# For an explanation of this behavior see //tvix/docs/value-pointer-equality.md +let + f = owo: "thia"; +in + +[ f 42 ] > [ f 21 ] \ No newline at end of file -- cgit 1.4.1