diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2022-12-06 22:04:37 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2022-12-06 22:04:37 +0200 |
| commit | 235782f210e99ac063b78907d17a049a0a94a50a (patch) | |
| tree | bb97fc68e68096ece1e41ec689d25bb83f8e0fd3 /test/TestUtils.hs | |
| parent | 6b9782ce4a36e93156426b5747efcc90401b6251 (diff) | |
Add tests
Diffstat (limited to 'test/TestUtils.hs')
| -rw-r--r-- | test/TestUtils.hs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/TestUtils.hs b/test/TestUtils.hs index 84f95bf..672f801 100644 --- a/test/TestUtils.hs +++ b/test/TestUtils.hs @@ -8,13 +8,18 @@ testConfig = Config { configScriptFileName = Nothing, configVerboseMode = False, configShowHelp = False, - configPrintEvaled = False, + configPrintEvaled = PrintEvaledOff, configPrintCallStack = False, configUseREPL = False } testRunL :: Env -> LContext a -> IO (Either LException (a, LState)) -testRunL env = runL LState { stateConfig = testConfig, stateEnv = env, stateDepth = 0 } +testRunL env = runL LState { + stateConfig = testConfig, + stateEnv = env, + stateDepth = 0, + statePure = Impure +} expectSuccessL :: Env -> LContext a -> IO (a, LState) expectSuccessL env lc = |
