move test to its files
This commit is contained in:
21
debug.lsp
21
debug.lsp
@@ -1,4 +1,19 @@
|
||||
; (system-cmd-fork "ml" "-c" "(print 123) (sleep 1) (print \"aaa\")")
|
||||
(thread-create
|
||||
(tcp-server 7777 (lambda (str) (list #f (+ "(print \"" (string-upcase str) "\")"))))
|
||||
)
|
||||
|
||||
(print (reduce (lambda (acc e) (+ acc (string (+ "<th>" e "</th>")))) "" '("h1" "h2" "h3"))
|
||||
)
|
||||
(thread-sleep 1)
|
||||
|
||||
(thread-create
|
||||
(def code (tcp-client "127.0.0.1" 7777 ("abcd" "xyz")))
|
||||
(for c code
|
||||
(print "executing code:" c)
|
||||
(eval (parse c))
|
||||
)
|
||||
|
||||
(def code (tcp-client "127.0.0.1" 7777 "abcd"))
|
||||
(print "executing code:" code)
|
||||
(eval (parse code))
|
||||
)
|
||||
(threads-join)
|
||||
(print "ok")
|
||||
|
||||
Reference in New Issue
Block a user