Skip to content

Commit

Permalink
service: Dumpt tested files to log.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlstill committed Oct 18, 2015
1 parent 7d95c91 commit 21b9d12
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions exec/Service.hs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ runQuery (Query {..}) sock = do
Left emsg -> void $ err ("FATAL: Invalid question: " ++ emsg)
Right q -> do
doLog "running expressionTester"
doLog $ unlines [ "Testing:"
, " Student:"
, unlines (map (" " ++) (lines (student q)))
, ""
, " Solution:"
, unlines (map (" " ++) (lines (solution q)))
, ""
]
(ok, msg) <- fmap (isSuccess &&& (pp >>> map fixTicks)) $ runTest q
doLog "done"
let reply = concat [ "I", show transactId
Expand Down

0 comments on commit 21b9d12

Please sign in to comment.