File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
test/Spec/BotPlutusInterface Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -897,11 +897,15 @@ assertCommandHistory state =
897897 (fromMaybe " " $ state ^? commandHistory . ix idx)
898898 )
899899
900+ -- | assertEqual but using `commandEqual`
900901assertCommandEqual :: String -> Text -> Text -> Assertion
901902assertCommandEqual err expected actual
902903 | commandEqual expected actual = return ()
903904 | otherwise = assertFailure $ err ++ " \n Expected:\n " ++ show expected ++ " \n Got:\n " ++ show actual
904905
906+ -- | Checks if a command matches an expected command pattern
907+ -- Where a command pattern may use new lines in place of spaces, and use the wildcard `?` to match up to the next space
908+ -- E.g. `commandEqual "123\n456 ? 0" "123 456 789 0"` == `True`
905909commandEqual :: Text -> Text -> Bool
906910commandEqual " " " " = True
907911commandEqual " " _ = False
You can’t perform that action at this time.
0 commit comments