aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/ImplictCasts/Arithmetic.yql
blob: dfc37d30de9f51898716f62f56bd2bac5f4a1746 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))

(let res_sink (DataSink 'result))
(let res (List (ListType (DataType 'Uint64))))
(let res (Append res (+ (Int32 '5) (Uint64 '5))))
(let res (Append res (+ (Int32 '-5) (Uint64 '5))))
(let res (Append res (+ (Uint64 '5) (Int32 '-5))))
(let world (Write! world res_sink (Key) res '('('type))))
(let res (List (ListType (DataType 'Uint64))))
(let res (Append res (- (Int32 '5) (Uint64 '5))))
(let res (Append res (- (Int32 '-5) (Uint64 '5))))
(let res (Append res (- (Uint64 '5) (Int32 '-5))))
(let world (Write! world res_sink (Key) res '('('type))))
(let res (List (ListType (DataType 'Uint64))))
(let res (Append res (* (Int32 '5) (Uint64 '5))))
(let res (Append res (* (Int32 '-5) (Uint64 '5))))
(let res (Append res (* (Uint64 '5) (Int32 '-5))))
(let world (Write! world res_sink (Key) res '('('type))))
(let res (List (ListType (OptionalType (DataType 'Uint64)))))
(let res (Append res (/ (Int32 '5) (Uint64 '5))))
(let res (Append res (/ (Int32 '-5) (Uint64 '5))))
(let res (Append res (/ (Uint64 '5) (Int32 '-5))))
(let world (Write! world res_sink (Key) res '('('type))))
(let res (List (ListType (OptionalType (DataType 'Uint64)))))
(let res (Append res (% (Int32 '5) (Uint64 '5))))
(let res (Append res (% (Int32 '-5) (Uint64 '5))))
(let res (Append res (% (Uint64 '5) (Int32 '-5))))
(let world (Write! world res_sink (Key) res '('('type))))
(let world (Commit! world res_sink))
(return world)
)