null.yaml 378 B

123456789101112131415161718
  1. desc: Tests of conversion to and from the RQL null type
  2. tests:
  3. - cd:
  4. - r(null)
  5. - r.expr(null)
  6. py: r.expr(null)
  7. ot: (null)
  8. - cd: r.expr(null).type_of()
  9. rb: r(null).type_of()
  10. ot: 'NULL'
  11. # test coercions
  12. - cd: r.expr(null).coerce_to('string')
  13. ot: 'null'
  14. - cd: r.expr(null).coerce_to('null')
  15. ot: null