about summary refs log blame commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-lazy-equality.nix
blob: d19d1213d6952b1b8eb3a8291c8a4172a7af4285 (plain) (tree)
1
2
3
4
5
6
7
8





                          

                      



                    

                  
 
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)
]