From 21b9d12c60407efbe35ab639319ffbb35af177e8 Mon Sep 17 00:00:00 2001 From: Vladimir Still Date: Sun, 18 Oct 2015 10:28:22 +0200 Subject: [PATCH] service: Dumpt tested files to log. --- exec/Service.hs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/exec/Service.hs b/exec/Service.hs index 8f666ef6..509d9073 100644 --- a/exec/Service.hs +++ b/exec/Service.hs @@ -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