1. Karsten Schmidt
  2. clj-estuary

Commits

Karsten Schmidt  committed dba9c5b

updating test cases, adding lein-eclipse dev dependency, adding eclipse project files

  • Participants
  • Parent commits 478b987
  • Branches default

Comments (0)

Files changed (4)

File .classpath

View file
  • Ignore whitespace
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+  <classpathentry kind="src" path="src"/>
+  <classpathentry kind="src" path="resources"/>
+  <classpathentry kind="src" path="test"/>
+  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+  <classpathentry kind="lib" path="lib/clj-json-0.4.3.jar"/>
+  <classpathentry kind="lib" path="lib/clojure-1.3.0.jar"/>
+  <classpathentry kind="lib" path="lib/dev"/>
+  <classpathentry kind="lib" path="lib/jackson-core-asl-1.5.0.jar"/>
+  <classpathentry kind="output" path="classes"/>
+</classpath>

File .project

View file
  • Ignore whitespace
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+  <name>estuary</name>
+  <comment>Easy construction of dataflow graphs using standard Clojure agents.</comment>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>ccw.builder</name>
+      <arguments/>
+    </buildCommand>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+      <arguments/>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>ccw.nature</nature>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>

File project.clj

View file
  • Ignore whitespace
   :description "Easy construction of dataflow graphs using standard Clojure agents."
   :dependencies [[org.clojure/clojure "1.3.0"]
                  [clj-json "0.4.3"]]
-  :dev-dependencies [[lein-marginalia "0.6.1"]]
+  :dev-dependencies [
+	[lein-marginalia "0.6.1"]
+	[lein-eclipse "1.0.0"]
+  ]
   :main estuary.core)

File test/estuary/test/core.clj

View file
  • Ignore whitespace
   (is (= 65 (:value @c))))
 
 (deftest deserialize
-  (defgraph g2)
-  (deserialize-graph g2 "[{\"value\":84,\"id\":\"afc2f8f2-226d-4cac-a9cb-cbd574f913a3\",\"func\":\"estuary.core/set-and-accumulate\",\"targets\":[],\"in0\":42,\"in1\":42},{\"id\":\"1b1049ec-6fe7-48a0-b8be-91adab3aeb8f\",\"func\":\"estuary.core/set-value\",\"targets\":[{\"id\":\"afc2f8f2-226d-4cac-a9cb-cbd574f913a3\",\"port\":\"in0\"}],\"value\":42},{\"id\":\"fbad23fa-3efd-42ec-8129-20873905f8bc\",\"func\":\"estuary.core/set-value\",\"targets\":[{\"id\":\"afc2f8f2-226d-4cac-a9cb-cbd574f913a3\",\"port\":\"in1\"},{\"id\":\"1b1049ec-6fe7-48a0-b8be-91adab3aeb8f\",\"port\":\"value\"}],\"value\":42}]")
+  (defgraph g2 "[{\"value\":84,\"id\":\"afc2f8f2-226d-4cac-a9cb-cbd574f913a3\",\"func\":\"estuary.core/set-and-accumulate\",\"accu-func\":\"estuary.core/sum-accu\",\"targets\":[],\"in0\":42,\"in1\":42},{\"id\":\"1b1049ec-6fe7-48a0-b8be-91adab3aeb8f\",\"func\":\"estuary.core/set-value\",\"targets\":[{\"id\":\"afc2f8f2-226d-4cac-a9cb-cbd574f913a3\",\"port\":\"in0\"}],\"value\":42},{\"id\":\"fbad23fa-3efd-42ec-8129-20873905f8bc\",\"func\":\"estuary.core/set-value\",\"targets\":[{\"id\":\"afc2f8f2-226d-4cac-a9cb-cbd574f913a3\",\"port\":\"in1\"},{\"id\":\"1b1049ec-6fe7-48a0-b8be-91adab3aeb8f\",\"port\":\"value\"}],\"value\":42}]")
   (aliasnode g2 a "fbad23fa-3efd-42ec-8129-20873905f8bc")
   (aliasnode g2 b "1b1049ec-6fe7-48a0-b8be-91adab3aeb8f")
   (aliasnode g2 c "afc2f8f2-226d-4cac-a9cb-cbd574f913a3")