summaryrefslogtreecommitdiff
path: root/src/Run.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-08-03 21:36:47 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2024-08-06 21:59:09 +0200
commit7f35daac6a9b0c4e286f5b4bfc7010f074b52b57 (patch)
treeffc64a544b7c775bbb23fc526fa5c32626fbb6df /src/Run.hs
parent06f36e701ad8a036229aa7cbadf4cd47527cdcc2 (diff)
Test block expression type and statement
Diffstat (limited to 'src/Run.hs')
-rw-r--r--src/Run.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Run.hs b/src/Run.hs
index a40641b..a69ba75 100644
--- a/src/Run.hs
+++ b/src/Run.hs
@@ -121,6 +121,10 @@ evalSteps = mapM_ $ \case
forM_ value $ \i -> do
withVar name i $ evalSteps inner
+ ExprStatement expr -> do
+ TestBlock steps <- eval expr
+ evalSteps steps
+
Subnet name@(TypedVarName vname) parentExpr inner -> do
parent <- eval parentExpr
withSubnet parent (Just name) $ \net -> do