move test to its files
This commit is contained in:
parent
062edbac3c
commit
8085397744
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")
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
(system-cmd-fork "ml" "-c" "(print 123) (sleep 1) (print \"aaa\")")
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
(thread-create
|
||||
(tcp-server 7777 (lambda (str) (list #f (+ "(print \"" (string-upcase str) "\")"))))
|
||||
)
|
||||
|
||||
(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")
|
||||
20
wip.lsp
20
wip.lsp
|
|
@ -3,26 +3,6 @@
|
|||
(print (filter (lambda (eval e) (print e)) l))
|
||||
|
||||
|
||||
(thread-create
|
||||
(tcp-server 7777 (lambda (str) (list #f (+ "(print \"" (string-upcase str) "\")"))))
|
||||
)
|
||||
|
||||
(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")
|
||||
|
||||
|
||||
;; (usql "create table sf1 (symbol varchar(8), dimension varchar(3), calendar_date date, date_key date, report_period date, last_updated date, accoci float, assets float, assetsavg float, assetsc float, assetsnc float, assetturnover float, bvps float, capex float, cashneq float, cashnequsd float, cor float, consolinc float, currentratio float, de float, debt float, debtc float, debtnc float, debtusd float, deferredrev float, depamor float, deposits float, divyield float, dps float, ebit float, ebitda float, ebitdamargin float, ebitdausd float, ebitusd float, ebt float, eps float, epsdil float, epsusd float, equity float, equityavg float, equityusd float, ev float, evebit float, evebitda float, fcf float, fcfps float, fxusd float, gp float, grossmargin float, intangibles float, intexp float, invcap float, invcapavg float, inventory float, investments float, investmentsc float, investmentsnc float, liabilities float, liabilitiesc float, liabilitiesnc float, marketcap float, ncf float, ncfbus float, ncfcommon float, ncfdebt float, ncfdiv float, ncff float, ncfi float, ncfinv float, ncfo float, ncfx float, netinc float, netinccmn float, netinccmnusd float, netincdis float, netincnci float, netmargin float, opex float, opinc float, payables float, payoutratio float, pb float, pe float, pe1 float, ppnenet float, prefdivis float, price float, ps float, ps1 float, receivables float, retearn float, revenue float, revenueusd float, rnd float, roa float, roe float, roic float, ros float, sbcomp float, sgna float, sharefactor float, sharesbas float, shareswa float, shareswadil float, sps float, tangibles float, taxassets float, taxexp float, taxliabilities float, tbvps float, workingcapital float)")
|
||||
;; (usql "set 'DATE_FORMAT' = '%Y-%m-%d'")
|
||||
|
|
|
|||
Loading…
Reference in New Issue