ImplicitEqualsOverData.yqls 853 B

1234567891011121314151617181920212223242526272829
  1. (
  2. (let config (DataSource 'config))
  3. (let res_sink (DataSink 'result))
  4. # result is true for all tests below
  5. # To float
  6. (let value (Uint64 '18446744073709551615))
  7. (let commonType (DataType 'Float))
  8. (let imlicitEqualsResult (Exists (StrictCast value commonType)))
  9. (let world (Write! world res_sink (Key) imlicitEqualsResult '('('type))))
  10. # To double
  11. (let value (Int64 '"-9223372036854775808"))
  12. (let commonType (DataType 'Double))
  13. (let imlicitEqualsResult (Exists (StrictCast value commonType)))
  14. (let world (Write! world res_sink (Key) imlicitEqualsResult '('('type))))
  15. # To string
  16. (let value (Utf8 '"проверка"))
  17. (let commonType (DataType 'String))
  18. (let imlicitEqualsResult (Exists (StrictCast value commonType)))
  19. (let world (Write! world res_sink (Key) imlicitEqualsResult '('('type))))
  20. (let world (Commit! world res_sink))
  21. (return world)
  22. )