StringContains.yqls 936 B

123456789101112131415161718
  1. (
  2. #comment
  3. (let config (DataSource 'config))
  4. (let res_sink (DataSink 'result))
  5. (let world (Write! world res_sink (Key) (StringContains (Utf8 '12345) (String '"")) '('('type))))
  6. (let world (Write! world res_sink (Key) (StringContains (Just (String '12345)) (String '346)) '('('type))))
  7. (let world (Write! world res_sink (Key) (StringContains (String '12345) (Just (String '012345))) '('('type))))
  8. (let world (Write! world res_sink (Key) (StringContains (Just (String '567)) (Just (Utf8 '67))) '('('type))))
  9. (let world (Write! world res_sink (Key) (StringContains (Utf8 'abcad) (String 'bc)) '('('type))))
  10. (let world (Write! world res_sink (Key) (StringContains (Utf8 'xyz) (Utf8 'xyz)) '('('type))))
  11. (let world (Write! world res_sink (Key) (StringContains (Utf8 'one) (Null)) '('('type))))
  12. (let world (Write! world res_sink (Key) (StringContains (Null) (Utf8 'two)) '('('type))))
  13. (let world (Commit! world res_sink))
  14. (return world)
  15. )