about summary refs log blame commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-to-xml-propagate-catchable.nix
blob: 80d9e688be3f56962d840e1d3f62b8e881af0163 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                        
map (e: (builtins.tryEval (builtins.toXML e)).success) [
  (builtins.throw "a")
  [ (builtins.throw "a") ]
  [ "abc" (builtins.throw "a") ]
  "abc${builtins.throw "c"}"
  (_: builtins.throw "d")
  {
    u = builtins.throw "x";
    v = "a";
  }
  {
    u.i.w.x.z = builtins.throw "n";
  }
  # FIXME: test derivations and files.
]