Pipe Parameter is now a Tuple
This commit is contained in:
@@ -195,7 +195,7 @@ begin
|
||||
FEnv.RootScope.Define('src', mockStream, TTypes.CreateRecordSeries(source.Def));
|
||||
|
||||
// Act
|
||||
script := '(pipe [src [:val]] (fn [x] {:res (* x 2)}))';
|
||||
script := '(pipe [[src [:val]]] (fn [x] {:res (* x 2)}))';
|
||||
|
||||
// 1. Compile & Link & Run (Constructs the Pipe Object)
|
||||
resVal := FEnv.Run(TAstScript.Parse(script));
|
||||
@@ -253,7 +253,7 @@ begin
|
||||
FEnv.RootScope.Define('in2', m2, TTypes.CreateRecordSeries(s2.Def));
|
||||
|
||||
// Act
|
||||
script := '(pipe [in1 [:a] in2 [:b]] (fn [valA valB] {:sum (+ valA valB)}))';
|
||||
script := '(pipe [[in1 [:a]] [in2 [:b]]] (fn [valA valB] {:sum (+ valA valB)}))';
|
||||
|
||||
resSeries := FEnv.Run(TAstScript.Parse(script)).AsStream.Series;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
;; EXPECT: <series[0]>
|
||||
(do
|
||||
(def btc-ma (pipe [btc [:Close]] (fn [c] (do {:ma c}))))
|
||||
(def btc-ma (pipe [[btc [:Close]]] (fn [c] (do {:ma c}))))
|
||||
(.ma btc-ma)
|
||||
)
|
||||
Reference in New Issue
Block a user