diff options
Diffstat (limited to 'ext/librethinkdbxx/test/upstream/datum/bool.yaml')
-rw-r--r-- | ext/librethinkdbxx/test/upstream/datum/bool.yaml | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/ext/librethinkdbxx/test/upstream/datum/bool.yaml b/ext/librethinkdbxx/test/upstream/datum/bool.yaml deleted file mode 100644 index 0e0aa11f..00000000 --- a/ext/librethinkdbxx/test/upstream/datum/bool.yaml +++ /dev/null @@ -1,47 +0,0 @@ -desc: Tests of conversion to and from the RQL bool type -tests: - - py: r.expr(True) - js: - - r.expr(true) - - r(true) - rb: r true - ot: true - - - py: r.expr(False) - js: - - r.expr(false) - - r(false) - rb: r false - ot: false - - - cd: r.expr(False).type_of() - ot: 'BOOL' - - # test coercions - - cd: r.expr(True).coerce_to('string') - ot: 'true' - - - cd: r.expr(True).coerce_to('bool') - ot: True - - - cd: r.expr(False).coerce_to('bool') - ot: False - - - cd: r.expr(null).coerce_to('bool') - ot: False - - - cd: r.expr(0).coerce_to('bool') - ot: True - - - cd: r.expr('false').coerce_to('bool') - ot: True - - - cd: r.expr('foo').coerce_to('bool') - ot: True - - - cd: r.expr([]).coerce_to('bool') - ot: True - - - cd: r.expr({}).coerce_to('bool') - ot: True - |