about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-lazy-equality.nix
blob: 92363245f8f1d601e10610886db6a4545e1f6dac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
let
  attrs1 = { x = 1 + 2; };
  attrs2 = { x = 2 + 1; };
  list1 = [ (1 + 2) ];
  list2 = [ (2 + 1) ];
  list3 = [ (2 + 2) ];
  list4 = [ (2 + 2) ];
  list5 = [ (2 + 2) ];
in
[
  (attrs1 == attrs2)
  (list1 == list2)
  (list3 == list2)
  (list4 == [ 4 ])
  ([ 4 ] == list5)
]