summaryrefslogtreecommitdiff
path: root/src/Test.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-08-10 20:40:09 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2022-08-10 23:41:19 +0200
commitefaed91a6007772acf066e7876c06462f4e68fd4 (patch)
tree9520557ac7fcca474af577cbe367a17ae6bde885 /src/Test.hs
parentc90a5abf0eeded8ff8a4aaee5ef35674236ed197 (diff)
Let statement
Diffstat (limited to 'src/Test.hs')
-rw-r--r--src/Test.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Test.hs b/src/Test.hs
index e7e1255..80ee966 100644
--- a/src/Test.hs
+++ b/src/Test.hs
@@ -30,7 +30,8 @@ data Test = Test
, testSteps :: [TestStep]
}
-data TestStep = Spawn ProcName NodeName
+data TestStep = Let SourceLine VarName (Expr Text)
+ | Spawn ProcName NodeName
| Send ProcName (Expr Text)
| Expect SourceLine ProcName (Expr Regex) [VarName]
| Guard SourceLine (Expr Bool)