summaryrefslogtreecommitdiff
path: root/test/asset/run/callstack.et
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-01-06 22:29:07 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2026-01-07 22:39:03 +0100
commit401b4c233d12763853877d4c31a2cf4342ca87b6 (patch)
treef6316d50ff413c73776f9d6c697deaef369cb1db /test/asset/run/callstack.et
parent0c21217fa599a7496a17d22c5105ef584785c350 (diff)
Call stack for the ‘expect’ statement
Diffstat (limited to 'test/asset/run/callstack.et')
-rw-r--r--test/asset/run/callstack.et18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/asset/run/callstack.et b/test/asset/run/callstack.et
index 9e8123b..36eb401 100644
--- a/test/asset/run/callstack.et
+++ b/test/asset/run/callstack.et
@@ -21,3 +21,21 @@ def gg (x):
test CG:
let z = 3
gg (z)
+
+def fe on p:
+ let x = 1
+ expect /$x/ from p timeout 0.0
+
+test BE:
+ spawn as p
+ fe on p
+
+def ge (x) on p:
+ guard (x /= 0)
+ let y = 2
+ expect /$x $y/ from p timeout 0.0
+
+test CE:
+ spawn as p
+ let z = 3
+ ge (z) on p