# assert that the expression throws when `deepSeq`-ed assertThrows = defun [ string any AssertResult ] (desc: expr: (assertTryEvalResult false)); nix-repl> nix.runTestsuite.assertThrows "foo" 12 error: while evaluating anonymous function at /home/lukas/src/depot/nix/yants/default.nix:294:26, called from (string):1:1: while evaluating '__functor' at /home/lukas/src/depot/nix/yants/default.nix:64:23, called from /home/lukas/src/depot/nix/yants/default.nix:294:30: while evaluating anonymous function at /home/lukas/src/depot/nix/yants/default.nix:39:30, called from /home/lukas/src/depot/nix/yants/default.nix:67:20: while evaluating the attribute 'err' at /home/lukas/src/depot/nix/yants/default.nix:261:30: while evaluating 'typeError' at /home/lukas/src/depot/nix/yants/default.nix:70:21, called from /home/lukas/src/depot/nix/yants/default.nix:261:36: while evaluating 'go' at /nix/store/qh1497vqx38yl6qcpdgf83jd45i96ahi-source/lib/generators.nix:210:18, called from /home/lukas/src/depot/nix/yants/default.nix:71:42: while evaluating 'functionArgs' at /nix/store/qh1497vqx38yl6qcpdgf83jd45i96ahi-source/lib/trivial.nix:334:18, called from /nix/store/qh1497vqx38yl6qcpdgf83jd45i96ahi-source/lib/generators.nix:239:17: 'functionArgs' requires a function, at /nix/store/qh1497vqx38yl6qcpdgf83jd45i96ahi-source/lib/trivial.nix:334:42