blob: 56fd1deb7b1b62b8b3e36ca9ef9c230588941b73 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
map (e: (builtins.tryEval (builtins.toJSON e)).success) [
(builtins.throw "a")
{
a = builtins.throw "attribute a";
}
{
a.b.c.d.e.f.g.h.i = builtins.throw "deep i";
}
{
x = 32;
y = builtins.throw "second argument";
}
{
__toString = _: builtins.throw "__toString a";
}
# FIXME(raitobezarius): we would like to test coercions, i.e. `toFile` and `derivation` containing throwables.
]
|