work in progress: real decons/csys stuff
This commit is contained in:
parent
871c5ef5af
commit
fbf735c0f2
3 changed files with 7 additions and 2 deletions
|
@ -25,6 +25,8 @@
|
||||||
(dolist (s syns)
|
(dolist (s syns)
|
||||||
(funcall s msg)))
|
(funcall s msg)))
|
||||||
|
|
||||||
|
;;;; publish/subscribe - pubsub service
|
||||||
|
|
||||||
;;;; helpers for operations on complex messages (with content and customer slots)
|
;;;; helpers for operations on complex messages (with content and customer slots)
|
||||||
|
|
||||||
(defun set-content (fn)
|
(defun set-content (fn)
|
||||||
|
|
|
@ -8,7 +8,10 @@
|
||||||
(lambda (msg) (probe msg state syns env))
|
(lambda (msg) (probe msg state syns env))
|
||||||
))
|
))
|
||||||
|
|
||||||
(deftest test-neuron ()
|
(defun test-csys ()
|
||||||
|
(test-neuron-basics))
|
||||||
|
|
||||||
|
(deftest test-neuron-basics ()
|
||||||
(let* ((prb (csys:neuron #'probe :env t:*test-suite* :state '(43 44)))
|
(let* ((prb (csys:neuron #'probe :env t:*test-suite* :state '(43 44)))
|
||||||
;(syn (csys:synapse prb (csys:set-content #'1+)))
|
;(syn (csys:synapse prb (csys:set-content #'1+)))
|
||||||
(syn (csys:synapse prb #'1+))
|
(syn (csys:synapse prb #'1+))
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
(test-recursive)
|
(test-recursive)
|
||||||
(test-line)
|
(test-line)
|
||||||
(test-quad)
|
(test-quad)
|
||||||
(test-neuron)
|
(test-csys)
|
||||||
(t:show-result)))
|
(t:show-result)))
|
||||||
|
|
||||||
(deftest test-xplore ()
|
(deftest test-xplore ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue