aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-fail-duplicate-traces.nix
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/eval-fail-duplicate-traces.nix')
-rw-r--r--test/testdata/eval-fail-duplicate-traces.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/testdata/eval-fail-duplicate-traces.nix b/test/testdata/eval-fail-duplicate-traces.nix
new file mode 100644
index 0000000..17ce374
--- /dev/null
+++ b/test/testdata/eval-fail-duplicate-traces.nix
@@ -0,0 +1,9 @@
1# Check that we only omit duplicate stack traces when there's a bunch of them.
2# Here, there's only a couple duplicate entries, so we output them all.
3let
4 throwAfter = n:
5 if n > 0
6 then throwAfter (n - 1)
7 else throw "Uh oh!";
8in
9 throwAfter 2