]> hydra-www.ietfng.org Git - dyna2/commitdiff
added dijkstra-backpointers to end-to-end tests.
authorTim Vieira <tim.f.vieira@gmail.com>
Fri, 5 Jul 2013 17:14:40 +0000 (13:14 -0400)
committerTim Vieira <tim.f.vieira@gmail.com>
Fri, 5 Jul 2013 17:14:40 +0000 (13:14 -0400)
examples/expected/dijkstra-backpointers.py.out [new file with mode: 0644]
src/Dyna/Backend/Python/Selftest.hs

diff --git a/examples/expected/dijkstra-backpointers.py.out b/examples/expected/dijkstra-backpointers.py.out
new file mode 100644 (file)
index 0000000..1781636
--- /dev/null
@@ -0,0 +1,41 @@
+
+Solution
+========
+end = "d".
+goal = 2.
+optimalpath = ["a", "e", "d"].
+start = "a".
+
+$key/1
+======
+$key(goal)      = end.
+$key(path("a")) = start.
+$key(path("b")) = "a".
+$key(path("c")) = "b".
+$key(path("d")) = "e".
+$key(path("e")) = "a".
+
+bestpath/1
+==========
+bestpath("a") = ["a"].
+bestpath("b") = ["b", "a"].
+bestpath("c") = ["c", "b", "a"].
+bestpath("d") = ["d", "e", "a"].
+bestpath("e") = ["e", "a"].
+
+edge/2
+======
+edge("a","b") = 1.
+edge("a","e") = 1.
+edge("b","c") = 1.
+edge("c","d") = 1.
+edge("e","d") = 1.
+
+path/1
+======
+path("a") = 0.
+path("b") = 1.
+path("c") = 2.
+path("d") = 2.
+path("e") = 1.
+
index 53e1405187e753a7ec35f6957b6380c52fce6f84..45664a861308ccaae6ae4774ed0017550518f6db 100644 (file)
@@ -77,7 +77,8 @@ mkExample name =
 -- will be broken. ;)
 test_End_To_End :: [Test]
 test_End_To_End = map mkExample
-  [ "simple", "equalities", "fib-limit", "dijkstra", "papa2", "matrixops", "geom", "lists" ]
+  [ "simple", "equalities", "fib-limit", "dijkstra", "papa2", "matrixops"
+  , "geom", "lists", "dijkstra-backpointers" ]
 
 test_REPL :: [Test]
 test_REPL = map (\n -> testProgramRuns n ("./test/repl/"++n) [])