]> hydra-www.ietfng.org Git - dyna2/commitdiff
added matrixops to python end-to-end tests.
authortimv <tim.f.vieira@gmail.com>
Tue, 4 Jun 2013 23:45:23 +0000 (19:45 -0400)
committertimv <tim.f.vieira@gmail.com>
Tue, 4 Jun 2013 23:45:23 +0000 (19:45 -0400)
examples/expected/matrixops.py.out [new file with mode: 0644]
src/Dyna/Backend/Python/Selftest.hs

diff --git a/examples/expected/matrixops.py.out b/examples/expected/matrixops.py.out
new file mode 100644 (file)
index 0000000..434aef4
--- /dev/null
@@ -0,0 +1,65 @@
+
+Charts
+============
+a/0
+=================
+
+
+b/0
+=================
+
+
+c/0
+=================
+
+
+cols/1
+=================
+cols(a)                        := 2
+cols(b)                        := 3
+cols(c)                        := 3
+
+m/3
+=================
+m(a,1,1)                       := 1
+m(a,1,2)                       := 0
+m(a,2,1)                       := 0
+m(a,2,2)                       := 1
+m(b,1,1)                       := 3
+m(b,1,2)                       := 0
+m(b,1,3)                       := 1
+m(b,2,1)                       := 0
+m(b,2,2)                       := 2
+m(b,2,3)                       := 0
+m(c,1,1)                       := 3
+m(c,1,2)                       := 0
+m(c,1,3)                       := 1
+m(c,2,1)                       := 0
+m(c,2,2)                       := 2
+m(c,2,3)                       := 0
+
+product/2
+=================
+product(a,b)                   := c
+
+rows/1
+=================
+rows(a)                        := 2
+rows(b)                        := 2
+rows(c)                        := 2
+
+shape/3
+=================
+shape(a,2,2)                   := True
+shape(b,2,3)                   := True
+shape(c,2,3)                   := True
+
+times/4
+=================
+times(a,b,1,1)                 := 3
+times(a,b,1,2)                 := 0
+times(a,b,1,3)                 := 1
+times(a,b,2,1)                 := 0
+times(a,b,2,2)                 := 2
+times(a,b,2,3)                 := 0
+
index 084cf369d9689558f512e5dd11fbab86dc023a82..638ea3d3eac6c2aab5fa067ba41ba393c44e9a57 100644 (file)
@@ -70,7 +70,7 @@ mkExample name =
 
 goldens :: TF.Test
 goldens = TF.testGroup "Python Backend End-To-End"
-          $ map mkExample ["simple", "papa2"]
+          $ map mkExample ["simple", "papa2", "matrixops"]
 
 ------------------------------------------------------------------------}}}
 -- Harness toplevel                                                     {{{