about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-foldl-propagate-catchable.nix
blob: 234c95040b67d355603f18a8d4878997ad517010 (plain) (blame)
1
2
3
4
5
6
7
8
map (e: (builtins.tryEval e).success) [
  (builtins.foldl' (builtins.throw "a") {} [ {} {} {} ])
  (builtins.foldl' (x: y: x // y) {} (builtins.throw "b"))
  (builtins.foldl' (_: _: builtins.throw "x") {} [ {} ])
  (builtins.foldl' (x: y: x // y) (builtins.throw "x") [ {} ])
  (builtins.foldl' (x: y: x // y) {} [ {} { a = builtins.throw "z"; } {} ])
  (builtins.foldl' (x: y: x // y) {} [ {} { b = 3; a = builtins.throw "u"; } {} ])
]