aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/InMem/StringContains.yql
blob: 9d5e42e3cf9c5a716bd11e4587ae943d7abf9c94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(
#comment
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))

(let res_sink (DataSink 'result))

(let world (Write! world res_sink (Key) (StringContains (Utf8 '12345) (String '"")) '('('type))))
(let world (Write! world res_sink (Key) (StringContains (Just (String '12345)) (String '346)) '('('type))))
(let world (Write! world res_sink (Key) (StringContains (String '12345) (Just (String '012345))) '('('type))))
(let world (Write! world res_sink (Key) (StringContains (Just (String '567)) (Just (Utf8 '67))) '('('type))))
(let world (Write! world res_sink (Key) (StringContains (Utf8 'abcad) (String 'bc)) '('('type))))
(let world (Write! world res_sink (Key) (StringContains (Utf8 'xyz) (Utf8 'xyz)) '('('type))))
(let world (Write! world res_sink (Key) (StringContains (Utf8 'one) (Null)) '('('type))))
(let world (Write! world res_sink (Key) (StringContains (Null) (Utf8 'two)) '('('type))))

(let world (Commit! world res_sink))
(return world)
)