File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
test/scenario-interpreter/src/Test Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -554,7 +554,7 @@ hindent_ s = do
554554 Just _ -> do
555555 (exit, stdout, stderr) <-
556556 System.Process. readProcessWithExitCode " hindent" [" --line-length" ," 150" ] s
557- `catchError` (\ err -> pure (error " no exit code on failure " , s, " hindent failed on input" ))
557+ `catchError` (\ err -> pure (System.Exit. ExitFailure 123 , s, " hindent failed on input" ))
558558
559559 if exit /= System.Exit. ExitSuccess
560560 then
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import qualified Lamdera.Evaluate
2626-}
2727run :: Args -> () -> IO ()
2828run (Args file expressionName) () = do
29- root <- getProjectRootFor file
29+ root <- getProjectRoot " Interpreter.run "
3030 debug_ " Starting interpreter..."
3131 Lamdera.Evaluate. exec root file expressionName
3232
Original file line number Diff line number Diff line change @@ -73,8 +73,10 @@ exec root path name = do
7373 let ! force = show $ Lamdera.Evaluate.Optimized. run def Map. empty (Opt. _g_nodes $ Opt. addLocalGraph objectsLocal graph)
7474 pure force
7575
76- formatted <- hindent_ force
77- atomicPutStrLn $ T. unpack $ formatted
76+ -- formatted <- hindent_ force
77+ -- atomicPutStrLn $ T.unpack $ formatted
78+
79+ atomicPutStrLn force
7880
7981
8082 -- formatHaskellValue "canonical Test.Basic" canonical
Original file line number Diff line number Diff line change @@ -90,8 +90,9 @@ suite =
9090 , test " List.repeat 10M" <|
9191 -- Just a performance test
9292 notEquals ( List . repeat 10000000 0 ) []
93- , test " folding with a plus" <|
94- equals ( List . foldl (+) 0 [ 1 , 2 , 3 ] ) 6
93+
94+ -- , test "folding with a plus" <|
95+ -- equals (List.foldl (+) 0 [ 1, 2, 3 ]) 6
9596 , test " Custom type equality" <|
9697 equals Custom1 Custom1
9798 , test " Custom type inequality" <|
You can’t perform that action at this time.
0 commit comments