summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-09-28 21:04:16 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2024-09-28 21:04:16 +0200
commit61304d829c2cd4d6edf3c015adae24d0574ce7a5 (patch)
tree814b3b608acf0542f28cad3c545d3c328038a242 /src
parent9a84b3cd39bbed74353dcf8156bce2218c049317 (diff)
Use "matching" as keyword for regex argument of "flush"
Changelog: Change "flush" command to take regex argument via "matching" keyword
Diffstat (limited to 'src')
-rw-r--r--src/Test/Builtins.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Test/Builtins.hs b/src/Test/Builtins.hs
index 6c6c2f0..9babb9e 100644
--- a/src/Test/Builtins.hs
+++ b/src/Test/Builtins.hs
@@ -37,11 +37,11 @@ builtinSend = SomeVarValue (FunctionArguments $ M.fromList atypes) $
builtinFlush :: SomeVarValue
builtinFlush = SomeVarValue (FunctionArguments $ M.fromList atypes) $
- \_ args -> TestBlock [ Flush (getArg args (Just "from")) (getArgMb args Nothing) ]
+ \_ args -> TestBlock [ Flush (getArg args (Just "from")) (getArgMb args (Just "matching")) ]
where
atypes =
[ ( Just "from", SomeArgumentType (ContextDefault @Process) )
- , ( Nothing, SomeArgumentType (OptionalArgument @Regex) )
+ , ( Just "matching", SomeArgumentType (OptionalArgument @Regex) )
]
builtinGuard :: SomeVarValue