work in progress: real decons/csys stuff

This commit is contained in:
Helmut Merz 2025-06-09 23:31:59 +02:00
parent 871c5ef5af
commit fbf735c0f2
3 changed files with 7 additions and 2 deletions

View file

@ -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)

View file

@ -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+))

View file

@ -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 ()