Diff of /trunk/Toss/Learn/LearnGameTest.ml [r1812] .. [r1813]  Maximize  Restore

  Switch to side-by-side view

--- a/trunk/Toss/Learn/LearnGameTest.ml
+++ b/trunk/Toss/Learn/LearnGameTest.ml
@@ -106,9 +106,9 @@
   (LearnGame.learnFromParties ~win0 ~win1 ~notwon ~wrong) ^ "\n"
 
 let test_learn_game name =
-  assert_equal ~printer:(fun s -> s)
-    (AuxIO.input_file ("./Learn/examples/" ^ name ^ ".toss"))
-    (learn_game "Learn/examples" name)
+  let res = AuxIO.input_file ("./Learn/examples/" ^ name ^ ".toss") in
+  assert_equal ~printer:(fun s -> s) (Aux.normalize_spaces res)
+    (Aux.normalize_spaces (learn_game "Learn/examples" name))
 
 let bigtests = "LearnGame" >::: [
   "Tic-Tac-Toe001" >:: (fun () -> test_learn_game "Tic-Tac-Toe001");

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks